summaryrefslogtreecommitdiff
path: root/yaksh/admin.py
diff options
context:
space:
mode:
authorankitjavalkar2020-10-07 12:04:12 +0530
committerGitHub2020-10-07 12:04:12 +0530
commit0e04d98e66b53763926af8027cbd275d890bfab4 (patch)
treee225826a16daf9a9485607457d5d67b568753553 /yaksh/admin.py
parented81054c05ff297ea241ce08664e0d2323da115c (diff)
parentc6c57869fe653d2ea0502017a9fb15f2f745491b (diff)
downloadonline_test-0e04d98e66b53763926af8027cbd275d890bfab4.tar.gz
online_test-0e04d98e66b53763926af8027cbd275d890bfab4.tar.bz2
online_test-0e04d98e66b53763926af8027cbd275d890bfab4.zip
Merge pull request #774 from adityacp/upload_toc
Add table of contents for the lessons
Diffstat (limited to 'yaksh/admin.py')
-rw-r--r--yaksh/admin.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/yaksh/admin.py b/yaksh/admin.py
index 3d3ba89..e98c7c5 100644
--- a/yaksh/admin.py
+++ b/yaksh/admin.py
@@ -1,7 +1,8 @@
from yaksh.models import Question, Quiz, QuestionPaper, Profile
from yaksh.models import (TestCase, StandardTestCase, StdIOBasedTestCase,
Course, AnswerPaper, CourseStatus, LearningModule,
- Lesson, Post, Comment
+ Lesson, Post, Comment, Topic, TableOfContents,
+ LessonQuizAnswer, Answer
)
from django.contrib import admin
@@ -59,3 +60,7 @@ admin.site.register(AnswerPaper, AnswerPaperAdmin)
admin.site.register(CourseStatus, CourseStatusAdmin)
admin.site.register(Lesson, LessonAdmin)
admin.site.register(LearningModule, LearningModuleAdmin)
+admin.site.register(Topic)
+admin.site.register(TableOfContents)
+admin.site.register(LessonQuizAnswer)
+admin.site.register(Answer)