diff options
author | CruiseDevice | 2020-04-14 20:13:52 +0530 |
---|---|---|
committer | CruiseDevice | 2020-04-14 20:13:52 +0530 |
commit | 508e0e78bb0bd3e8ebbad81e948f13de5c01b20f (patch) | |
tree | 1c320cf927c4f594c11ad86f564dc82f206a2a39 /yaksh/admin.py | |
parent | 2f9331717075b34534f2745706f57a98f7dce20d (diff) | |
download | online_test-508e0e78bb0bd3e8ebbad81e948f13de5c01b20f.tar.gz online_test-508e0e78bb0bd3e8ebbad81e948f13de5c01b20f.tar.bz2 online_test-508e0e78bb0bd3e8ebbad81e948f13de5c01b20f.zip |
Change model name Thread to Post to avoid conflicts
- Thread class from threading conflicts with the forum Thread model.
- Tests for models and views.
- PEP8 fix.
Diffstat (limited to 'yaksh/admin.py')
-rw-r--r-- | yaksh/admin.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py index 4489ffc..3d3ba89 100644 --- a/yaksh/admin.py +++ b/yaksh/admin.py @@ -1,7 +1,7 @@ from yaksh.models import Question, Quiz, QuestionPaper, Profile from yaksh.models import (TestCase, StandardTestCase, StdIOBasedTestCase, Course, AnswerPaper, CourseStatus, LearningModule, - Lesson, Thread, Comment + Lesson, Post, Comment ) from django.contrib import admin @@ -48,7 +48,7 @@ class QuizAdmin(admin.ModelAdmin): admin.site.register(Profile, ProfileAdmin) admin.site.register(Question) admin.site.register(TestCase) -admin.site.register(Thread) +admin.site.register(Post) admin.site.register(Comment) admin.site.register(StandardTestCase) admin.site.register(StdIOBasedTestCase) |