summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2020-09-15 13:50:24 +0530
committeradityacp2020-09-15 13:50:24 +0530
commita9a8f286767468a55709215fbe584157f32a7300 (patch)
tree7411a6b6da257a3eb692c55e0f099c093c374cc4 /yaksh/views.py
parent98908b86a94da4a2552564e057457c48b46d4ac3 (diff)
downloadonline_test-a9a8f286767468a55709215fbe584157f32a7300.tar.gz
online_test-a9a8f286767468a55709215fbe584157f32a7300.tar.bz2
online_test-a9a8f286767468a55709215fbe584157f32a7300.zip
Change multiple sections
- Show lesson topic description as per the video time - Fix description preview for module and lesson - Order table of contents by time
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index ab0f95d..e8bc2c6 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -2704,7 +2704,7 @@ def edit_lesson(request, course_id=None, module_id=None, lesson_id=None):
contents = TableOfContents.objects.filter(
course_id=course_id, lesson_id=lesson_id
- )
+ ).order_by("time")
data = loader.render_to_string(
"yaksh/show_toc.html", context={'contents': contents},
request=request
@@ -3559,7 +3559,7 @@ def get_tc_formset(question_type, post=None, question=None):
def get_toc_contents(request, course_id, lesson_id):
contents = TableOfContents.objects.filter(
course_id=course_id, lesson_id=lesson_id
- )
+ ).order_by("time")
data = loader.render_to_string(
"yaksh/show_toc.html", context={'contents': contents},
request=request