summaryrefslogtreecommitdiff
path: root/yaksh/urls.py
diff options
context:
space:
mode:
authorCruiseDevice2020-04-14 20:13:52 +0530
committerCruiseDevice2020-04-14 20:13:52 +0530
commit508e0e78bb0bd3e8ebbad81e948f13de5c01b20f (patch)
tree1c320cf927c4f594c11ad86f564dc82f206a2a39 /yaksh/urls.py
parent2f9331717075b34534f2745706f57a98f7dce20d (diff)
downloadonline_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/urls.py')
-rw-r--r--yaksh/urls.py17
1 files changed, 12 insertions, 5 deletions
diff --git a/yaksh/urls.py b/yaksh/urls.py
index 1b86ae8..72febc0 100644
--- a/yaksh/urls.py
+++ b/yaksh/urls.py
@@ -59,11 +59,18 @@ 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+)/$', views.course_forum, name='course_forum'),
- url(r'^forum/(?P<course_id>\d+)/thread/(?P<uuid>[0-9a-f-]+)/$', views.thread_comments, name='thread_comments'),
- url(r'^forum/(?P<course_id>\d+)/thread/(?P<uuid>[0-9a-f-]+)/delete/', views.hide_thread, name='hide_thread'),
- url(r'^forum/(?P<course_id>\d+)/comment/(?P<uuid>[0-9a-f-]+)/delete/', views.hide_comment, name='hide_comment'),
-
+ url(r'^forum/(?P<course_id>\d+)/$',
+ views.course_forum,
+ name='course_forum'),
+ url(r'^forum/(?P<course_id>\d+)/post/(?P<uuid>[0-9a-f-]+)/$',
+ views.post_comments,
+ name='post_comments'),
+ url(r'^forum/(?P<course_id>\d+)/post/(?P<uuid>[0-9a-f-]+)/delete/',
+ views.hide_post,
+ name='hide_post'),
+ url(r'^forum/(?P<course_id>\d+)/comment/(?P<uuid>[0-9a-f-]+)/delete/',
+ views.hide_comment,
+ name='hide_comment'),
url(r'^manage/$', views.prof_manage, name='manage'),
url(r'^manage/addquestion/$', views.add_question, name="add_question"),
url(r'^manage/addquestion/(?P<question_id>\d+)/$', views.add_question,