summaryrefslogtreecommitdiff
path: root/yaksh/admin.py
diff options
context:
space:
mode:
authoradityacp2018-05-24 12:07:39 +0530
committeradityacp2018-06-07 14:50:47 +0530
commit97b657edc2a323f832c81f0e34ce5761bd21f7e9 (patch)
tree09f4367f813fab99ffa8cd540d246cfc8c8fa00a /yaksh/admin.py
parent78ce1804d3a82327aa0da1510bb5c03d6bbff3ba (diff)
downloadonline_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.gz
online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.tar.bz2
online_test-97b657edc2a323f832c81f0e34ce5761bd21f7e9.zip
Pep8 changes
Diffstat (limited to 'yaksh/admin.py')
-rw-r--r--yaksh/admin.py13
1 files changed, 7 insertions, 6 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py
index 199fb56..a516b1d 100644
--- a/yaksh/admin.py
+++ b/yaksh/admin.py
@@ -1,16 +1,17 @@
from yaksh.models import Question, Quiz, QuestionPaper, Profile
-from yaksh.models import TestCase, StandardTestCase, StdIOBasedTestCase, Course, AnswerPaper
+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","user_ip" ]
+ 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"]
+ search_fields = ['user__first_name', 'user__last_name', 'user__username',
+ "roll_number", "institute", "department"]
admin.site.register(Profile, ProfileAdmin)
admin.site.register(Question)