Commits

Maciej Wiśniowski committed 5772878

fixed typos

Comments (0)

Files changed (2)

lfs_carousel/templates/lfs_carousel/items.html

                     <td class="right-padding">
                         {% if not forloop.first %}
                             <a class="up ajax-link"
-                               href="{% url lfc_carousel_move_item item.id %}?direction=0"
+                               href="{% url lfs_carousel_move_item item.id %}?direction=0"
                                title='{% trans "Move Up" %}'></a>
                         {% endif %}
                         {% if not forloop.last %}
                             <a class="down ajax-link"
-                               href="{% url lfc_carousel_move_item item.id %}?direction=1"
+                               href="{% url lfs_carousel_move_item item.id %}?direction=1"
                                title='{% trans "Move Down" %}'></a>
                         {% else %}
                             <span class="blank"></span>

lfs_carousel/views.py

 
         return HttpResponse(result)
 
-    #@permission_required("core.manage_shop", login_url="/login/")
     def move_item(self, request, id):
         """Moves the items with passed id up or down.
 
             url(r'^add-item/(?P<content_type_id>\d*)/(?P<object_id>\d*)/$', wrap(self.add_item), name="lfs_carousel_add_item"),
             url(r'^update-items/(?P<content_type_id>\d*)/(?P<object_id>\d*)/$', wrap(self.update_items), name="lfs_carousel_update_items"),
             url(r'^manage-items/(?P<content_type_id>\d*)/(?P<object_id>\d*)/$', wrap(self.manage_items), name="lfs_carousel_manage_items"),
-            url(r'^move-item/(?P<id>\d+)$', self.move_item, name="lfc_carousel_move_item"),
+            url(r'^move-item/(?P<id>\d+)$', self.move_item, name="lfs_carousel_move_item"),
         )
 
         return urlpatterns