summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authorPrabhu Ramachandran2017-01-16 23:17:38 +0530
committerGitHub2017-01-16 23:17:38 +0530
commit899b2c4a347a6e7c4391dedce163a7ae0c4e8634 (patch)
treef8634b32ef590f3484580828d16dc892b6021275 /yaksh
parent10b4635ab0684a698382a3e167ef546bb3ff97b7 (diff)
parente87cb6c64ac30997a8a66846b0af7fdc87d47eac (diff)
downloadonline_test-899b2c4a347a6e7c4391dedce163a7ae0c4e8634.tar.gz
online_test-899b2c4a347a6e7c4391dedce163a7ae0c4e8634.tar.bz2
online_test-899b2c4a347a6e7c4391dedce163a7ae0c4e8634.zip
Merge pull request #178 from maheshgudi/admin_changes
Added search option in answerpaper admin page, gitignore doc _builds
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/admin.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py
index c525ba3..72496b2 100644
--- a/yaksh/admin.py
+++ b/yaksh/admin.py
@@ -2,6 +2,13 @@ from yaksh.models import Question, Quiz, QuestionPaper
from yaksh.models import TestCase, StandardTestCase, StdIOBasedTestCase, Course, AnswerPaper
from django.contrib import admin
+
+
+class AnswerPaperAdmin(admin.ModelAdmin):
+ search_fields = ['user__first_name', 'user__last_name','user__username',
+ "question_paper__quiz__description" ]
+
+
admin.site.register(Question)
admin.site.register(TestCase)
admin.site.register(StandardTestCase)
@@ -9,4 +16,4 @@ admin.site.register(StdIOBasedTestCase)
admin.site.register(Course)
admin.site.register(Quiz)
admin.site.register(QuestionPaper)
-admin.site.register(AnswerPaper) \ No newline at end of file
+admin.site.register(AnswerPaper, AnswerPaperAdmin)