diff options
author | Akshen | 2018-10-31 11:13:21 +0530 |
---|---|---|
committer | Akshen | 2018-10-31 11:13:21 +0530 |
commit | 529c9b63bfe2ee7d6fe1667bf5c09a0b23ac374f (patch) | |
tree | 87f5099735d814f89831d91b606f038e02468471 /website/admin.py | |
parent | 7d171e9b3dfdf6119f719ae7283add795bd1ec6c (diff) | |
download | nccps-2018-529c9b63bfe2ee7d6fe1667bf5c09a0b23ac374f.tar.gz nccps-2018-529c9b63bfe2ee7d6fe1667bf5c09a0b23ac374f.tar.bz2 nccps-2018-529c9b63bfe2ee7d6fe1667bf5c09a0b23ac374f.zip |
Allow participants to view and download solutions
- view correct answers
- download all dwsim files
- remove 10 marks week
Diffstat (limited to 'website/admin.py')
-rw-r--r-- | website/admin.py | 10 |
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 |