Added category_delete function to template.
This commit is contained in:
parent
db97d3c312
commit
d41ce146e2
|
@ -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>
|
||||
|
|
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue