summaryrefslogtreecommitdiff
path: root/website/admin.py
diff options
context:
space:
mode:
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