summaryrefslogtreecommitdiff
path: root/yaksh
diff options
context:
space:
mode:
authoradityacp2020-02-10 17:10:22 +0530
committeradityacp2020-02-10 17:10:22 +0530
commit6c7325350471bcf7437fcc7f08debe19bd0365eb (patch)
tree8e9477ba503e6149331a45542f6ab167a27d017e /yaksh
parentf9eb4681807c56b9dd67ed370e032e77f9219bf2 (diff)
downloadonline_test-6c7325350471bcf7437fcc7f08debe19bd0365eb.tar.gz
online_test-6c7325350471bcf7437fcc7f08debe19bd0365eb.tar.bz2
online_test-6c7325350471bcf7437fcc7f08debe19bd0365eb.zip
Fix pep8 issues
Diffstat (limited to 'yaksh')
-rw-r--r--yaksh/admin.py4
-rw-r--r--yaksh/models.py4
2 files changed, 5 insertions, 3 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py
index 8944722..efbeb7f 100644
--- a/yaksh/admin.py
+++ b/yaksh/admin.py
@@ -20,7 +20,7 @@ class CourseStatusAdmin(admin.ModelAdmin):
class CourseAdmin(admin.ModelAdmin):
- list_filter = ['active', 'is_trial']
+ list_filter = ['active', 'is_trial']
admin.site.register(Profile, ProfileAdmin)
@@ -32,4 +32,4 @@ admin.site.register(Course, CourseAdmin)
admin.site.register(Quiz)
admin.site.register(QuestionPaper)
admin.site.register(AnswerPaper, AnswerPaperAdmin)
-admin.site.register(CourseStatus, CourseStatusAdmin) \ No newline at end of file
+admin.site.register(CourseStatus, CourseStatusAdmin)
diff --git a/yaksh/models.py b/yaksh/models.py
index d453f81..df37b26 100644
--- a/yaksh/models.py
+++ b/yaksh/models.py
@@ -1162,7 +1162,9 @@ class CourseStatus(models.Model):
self.save()
def __str__(self):
- return "{0} status for {1}".format(self.course.name, self.user.username)
+ return "{0} status for {1}".format(
+ self.course.name, self.user.username
+ )
###############################################################################