#5925: Unable to use urlresolvers (url,reverse ) feature in redirect argument of
decorator user_passes_test
------------------------------------+---------------------------------------
Reporter: anonymous | Owner: nobody
Status: new | Milestone:
Component: Uncategorized | Version: SVN
Resolution: | Keywords:
urlresolver,reverse,decorator,url,permalink
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
------------------------------------+---------------------------------------
Comment (by mtredinnick):
Should be possible to solve this using our existing
`django.utils.functional.lazy()` function to create `lazy_reverse`.
Reinventing that wheel is something to avoid. `reverse()` is a function
that returns a unicode object (we should ensure that it does return
unicode and not str). So there are a few things to do here: auditing
existing reverse, hooking up `reverse_lazy`, documentation, tests, etc,
but that sounds like a plan. At least in my head.
--
Ticket URL: <http://code.djangoproject.com/ticket/5925#comment:7>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---