Hi,
I have the following in one of my templates:
<a href="{% url comments-flag comment.id,object.get_absolute_url
%}">Flag</a>
But I'm getting a TemplateSyntaxError:
Caught an exception while rendering: Reverse for 'mysite.comments-
flag' with arguments '(<comment.id>, '<the object.get_absolute_url>')'
and keyword arguments '{}' not found
The named url "comments-flag" comes from
django.contrib.comments.urls.py:
url(r'^flag/(\d+)/$', 'moderation.flag', name='comments-
flag'),
Checking moderation.flag, the signature is:
def flag(request, comment_id, next=None)
Shouldn't it work? I tried using named parameters also, same error.
It works if I remove the 2nd argument, passing comment.id only, but
shouldn't I be able to specify the "next" parameter?
Thanks!
Roy
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---