summaryrefslogtreecommitdiff
path: root/website/admin.py
diff options
context:
space:
mode:
authorFOSSEE Git User2018-10-12 19:32:15 +0530
committerFOSSEE Git User2018-10-12 19:32:15 +0530
commitb3d3f55f8bc981bc2c0cb003879f517d415e5d0c (patch)
tree64716fc22fc062889fc3057f855d6b5579e9d4ed /website/admin.py
parent4099238c0bc191ab6ad0b236a1f45d530559982d (diff)
parent0c8f9e7f672755127a0c396448118dff22aac7e5 (diff)
downloadnccps-2018-b3d3f55f8bc981bc2c0cb003879f517d415e5d0c.tar.gz
nccps-2018-b3d3f55f8bc981bc2c0cb003879f517d415e5d0c.tar.bz2
nccps-2018-b3d3f55f8bc981bc2c0cb003879f517d415e5d0c.zip
Merge branch 'master' of https://github.com/FOSSEE/nccps-2018
Diffstat (limited to 'website/admin.py')
-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