summaryrefslogtreecommitdiff
path: root/yaksh/admin.py
diff options
context:
space:
mode:
authorPrabhu Ramachandran2018-06-07 16:14:37 +0530
committerGitHub2018-06-07 16:14:37 +0530
commit4eb754c2e71922819de7390d1b4993a21763de3e (patch)
treefede3f4250f3711d31da4bb7edd262edd0a90727 /yaksh/admin.py
parent78ce1804d3a82327aa0da1510bb5c03d6bbff3ba (diff)
parent93bb10eae5e1364ae6492f2534f0e7864c9c4254 (diff)
downloadonline_test-4eb754c2e71922819de7390d1b4993a21763de3e.tar.gz
online_test-4eb754c2e71922819de7390d1b4993a21763de3e.tar.bz2
online_test-4eb754c2e71922819de7390d1b4993a21763de3e.zip
Merge pull request #482 from adityacp/pep8_changes
Pep8 changes
Diffstat (limited to 'yaksh/admin.py')
-rw-r--r--yaksh/admin.py14
1 files changed, 8 insertions, 6 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py
index 199fb56..7ea8ed6 100644
--- a/yaksh/admin.py
+++ b/yaksh/admin.py
@@ -1,16 +1,18 @@
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)