On Sat, Dec 20, 2008 at 3:02 PM, Bradley Wright <bradl...@gmail.com> wrote:
> Given the following code, can anyone explain why Django can't reverse
> this, because I'm of the opinion that reverse is the flakiest function
> ever:

The permalink decorator is a shortcut which will, on its own, apply
reverse() to what the function returns. Since you're already calling
reverse() in the function, you're essentially passing the result of
reverse() into another reverse() call. Consult the documentation to
see how the decorator is normally used.


-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to