Added category_delete function to template.

This commit is contained in:
Emanuel Schuetze 2013-03-11 21:50:16 +01:00
parent db97d3c312
commit d41ce146e2
2 changed files with 2 additions and 2 deletions

View File

@ -30,8 +30,7 @@
<a href="{% model_url category 'update' %}" title="{% trans 'Edit' %}" class="btn btn-mini">
<i class="icon-pencil"></i>
</a>
{# TODO: motion_category_delete #}
<a href="{% url 'motion_delete' category.id %}" title="{% trans 'Delete' %}" class="btn btn-mini">
<a href="{% model_url category 'delete' %}" title="{% trans 'Delete' %}" class="btn btn-mini">
<i class="icon-remove"></i>
</a>
</span>

View File

@ -495,6 +495,7 @@ category_update = CategoryUpdateView.as_view()
class CategoryDeleteView(DeleteView):
permission_required = 'motion.can_manage_motion'
model = Category
question_url_name = 'motion_category_list'
success_url_name = 'motion_category_list'
category_delete = CategoryDeleteView.as_view()