From 75d7369bb63e771bebef1932e2b992bf5693e3ca Mon Sep 17 00:00:00 2001 From: Charles Connell Date: Wed, 12 Mar 2014 22:57:48 -0400 Subject: [PATCH] Simpler keyword URL --- karmaworld/templates/quizzes/keyword_edit.html | 2 +- karmaworld/urls.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/karmaworld/templates/quizzes/keyword_edit.html b/karmaworld/templates/quizzes/keyword_edit.html index 52b3d43..00adcd8 100644 --- a/karmaworld/templates/quizzes/keyword_edit.html +++ b/karmaworld/templates/quizzes/keyword_edit.html @@ -44,7 +44,7 @@
-
+ {% csrf_token %} {{ form.management_form }}
diff --git a/karmaworld/urls.py b/karmaworld/urls.py index 677e4a7..00a83a2 100644 --- a/karmaworld/urls.py +++ b/karmaworld/urls.py @@ -121,7 +121,7 @@ urlpatterns = patterns('', # Quizzes url(r'^quiz/(?P[\d]+)/$', QuizView.as_view(), name='quiz'), - url(r'^note/' + SLUG.format('school_') + '/' + SLUG.format('course_') +'/'+ SLUG.format('') +'/keywords/$', + url(r'^keywords/' + SLUG.format('') + '/$', KeywordEditView.as_view(), name='keyword_edit'), url(r'^$', CourseListView.as_view(model=Course), name='home'), -- 2.25.1