From 2a9f81cb32acfd7a2efc18f58c4529b39ce4061b Mon Sep 17 00:00:00 2001
From: CruiseDevice
Date: Sat, 11 Apr 2020 17:45:31 +0530
Subject: Discussion forum for a course

---
 yaksh/admin.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

(limited to 'yaksh/admin.py')

diff --git a/yaksh/admin.py b/yaksh/admin.py
index 9c36a98..4489ffc 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
+                          Lesson, Thread, Comment
                           )
 from django.contrib import admin
 
@@ -48,6 +48,8 @@ class QuizAdmin(admin.ModelAdmin):
 admin.site.register(Profile, ProfileAdmin)
 admin.site.register(Question)
 admin.site.register(TestCase)
+admin.site.register(Thread)
+admin.site.register(Comment)
 admin.site.register(StandardTestCase)
 admin.site.register(StdIOBasedTestCase)
 admin.site.register(Course, CourseAdmin)
-- 
cgit 


From 508e0e78bb0bd3e8ebbad81e948f13de5c01b20f Mon Sep 17 00:00:00 2001
From: CruiseDevice
Date: Tue, 14 Apr 2020 20:13:52 +0530
Subject: 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.
---
 yaksh/admin.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

(limited to 'yaksh/admin.py')

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)
-- 
cgit