summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorAkshen2018-10-12 10:58:55 +0530
committerAkshen2018-10-12 10:58:55 +0530
commitd12caaf4506552fd97dc5b6c961b08412650b169 (patch)
tree02d049b04133b7ddc61505d76eecf8046695fb61 /website
parenta80d99243f843181c7356d71a1b3446d5cc80637 (diff)
downloadnccps-2018-d12caaf4506552fd97dc5b6c961b08412650b169.tar.gz
nccps-2018-d12caaf4506552fd97dc5b6c961b08412650b169.tar.bz2
nccps-2018-d12caaf4506552fd97dc5b6c961b08412650b169.zip
Update Admin Model
Diffstat (limited to 'website')
-rw-r--r--website/admin.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/website/admin.py b/website/admin.py
index 8c38f3f..e244083 100644
--- a/website/admin.py
+++ b/website/admin.py
@@ -1,3 +1,24 @@
from django.contrib import admin
+from .models import( Profile,
+ AnswerPaper,
+ Question
+ )
+
+
+class ProfileAdmin(admin.ModelAdmin):
+ list_display = ['title','user', 'institute',
+ 'phone_number','position']
+
+
+class QuestionAdmin(admin.ModelAdmin):
+ list_display = ['question', 'correct_answer', 'question_day']
+
+
+class AnswerPaperAdmin(admin.ModelAdmin):
+ list_display = ['participant', 'answered_q', 'date']
+
# 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