diff options
-rw-r--r-- | yaksh/admin.py | 4 | ||||
-rw-r--r-- | yaksh/models.py | 4 |
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 + ) ############################################################################### |