ругается на строчку href url blog views redirectDelete comment id img

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
ругается на строчку:
<a href="{% url blog.views.redirectDelete comment.id %}"><img src="/blog/media/images/action_delete.png" alt="удалить"></a></div>
NoReverseMatch: Reverse for '<function redirectDelete at 0x880f064>' not found.
views.py:
def redirectDelete(request):
kwargs = kwargs
kwargs['post_delete_redirect'] = post_redirect(request)
kwargs['extra_context'] = {'redirect': post_redirect(request)}
return delete_object(request, *args, **kwargs)
urls.py:
(r'^comments/(?P<object_id>\d+)/delete/$', views.redirectDelete,
{ 'model': Comment,
'post_delete_redirect': "/blog/",
'login_required': True,
'template_name': "%s/blog/comment_confirm_delete.html" % settings.TEMPLATE_THEME})