summaryrefslogtreecommitdiff
path: root/website/admin.py
diff options
context:
space:
mode:
Diffstat (limited to 'website/admin.py')
-rw-r--r--website/admin.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/website/admin.py b/website/admin.py
index c6a7d78..7a6ba2e 100644
--- a/website/admin.py
+++ b/website/admin.py
@@ -3,7 +3,8 @@ import csv
from django.http import HttpResponse
from .models import( Profile,
AnswerPaper,
- Question
+ Question,
+ UploadModel
)
try:
@@ -45,7 +46,12 @@ class AnswerPaperAdmin(admin.ModelAdmin):
+class UploadModelAdmin(admin.ModelAdmin):
+ list_display = ['question']
+
+
# Register your models here.
admin.site.register(Profile, ProfileAdmin)
admin.site.register(AnswerPaper, AnswerPaperAdmin)
-admin.site.register(Question, QuestionAdmin) \ No newline at end of file
+admin.site.register(Question, QuestionAdmin)
+admin.site.register(UploadModel, UploadModelAdmin) \ No newline at end of file