#5925: Unable to use urlresolvers (url,reverse ) feature in redirect argument of decorator user_passes_test -------------------------------------+-------------------------------------- Reporter: anonymous | Owner: SmileyChris Status: assigned | Milestone: Component: Core framework | Version: SVN Resolution: | Keywords: urlresolver,reverse,decorator,url,permalink Stage: Accepted | Has_patch: 0 Needs_docs: 0 | Needs_tests: 0 Needs_better_patch: 0 | -------------------------------------+-------------------------------------- Changes (by SmileyChris):
* owner: nobody => SmileyChris * status: new => assigned Comment: Patch provides a new `reverse_lazy` function (with documentation), and changes the `user_passes_test` decorator function to not use the `login_url` at runtime. I'm not quite sure how you'd test this, since it'd require testing it before the URL names map is loaded. -- Ticket URL: <http://code.djangoproject.com/ticket/5925#comment:11> Django <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 django-upda...@googlegroups.com. To unsubscribe from this group, send email to django-updates+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-updates?hl=en.