summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorCruiseDevice2020-09-16 07:23:36 +0530
committerankitjavalkar2020-10-08 10:42:50 +0530
commit5e49406420207123afec88a1ca7138e7a58c2acc (patch)
tree9680cf23a1aa28f8947ca66f270c4bd48e288bbe /yaksh/urls.py
parent05ecae144ba161ee88ae98ff4313c9e5480bb604 (diff)
downloadonline_test-5e49406420207123afec88a1ca7138e7a58c2acc.tar.gz
online_test-5e49406420207123afec88a1ca7138e7a58c2acc.tar.bz2
online_test-5e49406420207123afec88a1ca7138e7a58c2acc.zip
Show Lesson post and comments in discussion forum
- Use trash icon instead of DELETE button - Sidebar to navigate between course forum and lesson forum - Course forum displays all the questions (posts) linked with the course model, and Lesson forum displays all the questions (posts) linked with the Lesson model.
Diffstat (limited to 'yaksh/urls.py')
-rw-r--r--yaksh/urls.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index b60b5f5..82785ca 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -60,9 +60,11 @@ urlpatterns = [
views.get_next_unit, name='next_unit'),
url(r'^course_modules/(?P<course_id>\d+)/$',
views.course_modules, name='course_modules'),
- url(r'^forum/(?P<course_id>\d+)/$',
+ url(r'^forum/course_forum/(?P<course_id>\d+)/$',
views.course_forum,
name='course_forum'),
+ url(r'^forum/lessons_forum/(?P<course_id>\d+)/$',
+ views.lessons_forum, name='lessons_forum'),
url(r'^forum/(?P<course_id>\d+)/post/(?P<uuid>[0-9a-f-]+)/$',
views.post_comments,
name='post_comments'),