Simpler keyword URL 357/head
authorCharles Connell <charles@connells.org>
Thu, 13 Mar 2014 02:57:48 +0000 (22:57 -0400)
committerCharles Connell <charles@connells.org>
Thu, 13 Mar 2014 02:57:48 +0000 (22:57 -0400)
karmaworld/templates/quizzes/keyword_edit.html
karmaworld/urls.py

index 52b3d43c65df76afb4bc0f4cb7ca3a7d2bd63c82..00adcd86d6e520953c0c0248a34fdedacf016939 100644 (file)
@@ -44,7 +44,7 @@
     <div id="activity_container">
       <div class="row">
         <div class="small-12 columns">
-          <form id="keyword-form" action="{% url 'keyword_edit' note.course.school.slug note.course.slug note.slug %}" method="post">
+          <form id="keyword-form" action="{% url 'keyword_edit' note.slug %}" method="post">
             {% csrf_token %}
             {{ form.management_form }}
             <div class="hide" id="keyword-form-prototype">
index 677e4a78e58ca261c0fe398d087a450d4d22f198..00a83a2585aeb93a479a6c685dfc174b37ed1ff4 100644 (file)
@@ -121,7 +121,7 @@ urlpatterns = patterns('',
     # Quizzes
     url(r'^quiz/(?P<pk>[\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'),