#5925: Unable to use url reverse feature in redirect argument of decorator
user_passes_test
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: nobody
Status: new | Component: Uncategorized
Version: SVN | Keywords: reverse,decorator
Stage: Unreviewed | Has_patch: 0
-----------------------+----------------------------------------------------
trying something like :
{{{
@user_passes_test(lambda u: my_function(u),login_url =
reverse('my_reverse_key'))
def my view(request)
pass
...
}}}
yields an error when importing "urls.py" (i.e.really quickly)
--
Ticket URL: <http://code.djangoproject.com/ticket/5925>
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
-~----------~----~----~----~------~----~------~--~---