summaryrefslogtreecommitdiff
path: root/yaksh/admin.py
diff options
context:
space:
mode:
authormahesh2017-09-01 16:43:11 +0530
committermahesh2017-09-01 16:43:11 +0530
commite8eca566edde7b330a92af91541cee5d348a0326 (patch)
treea996fa48ebdfd56b14451dc57d413f03f25a4237 /yaksh/admin.py
parentf308f6e4ffb3fefc42552570fd8cf852d643cd6f (diff)
parent9e0f737c25a5156aa884d27357af0aef1145c4b7 (diff)
downloadonline_test-e8eca566edde7b330a92af91541cee5d348a0326.tar.gz
online_test-e8eca566edde7b330a92af91541cee5d348a0326.tar.bz2
online_test-e8eca566edde7b330a92af91541cee5d348a0326.zip
Merge branch 'master' of https://github.com/fossee/online_test into add_tag_search
Diffstat (limited to 'yaksh/admin.py')
-rw-r--r--yaksh/admin.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py
index 79d4930..199fb56 100644
--- a/yaksh/admin.py
+++ b/yaksh/admin.py
@@ -1,4 +1,4 @@
-from yaksh.models import Question, Quiz, QuestionPaper
+from yaksh.models import Question, Quiz, QuestionPaper, Profile
from yaksh.models import TestCase, StandardTestCase, StdIOBasedTestCase, Course, AnswerPaper
from django.contrib import admin
@@ -8,7 +8,11 @@ class AnswerPaperAdmin(admin.ModelAdmin):
search_fields = ['user__first_name', 'user__last_name','user__username',
"question_paper__quiz__description","user_ip" ]
+class ProfileAdmin(admin.ModelAdmin):
+ search_fields = ['user__first_name', 'user__last_name','user__username',
+ "roll_number", "institute","department"]
+admin.site.register(Profile, ProfileAdmin)
admin.site.register(Question)
admin.site.register(TestCase)
admin.site.register(StandardTestCase)