#4617: permission_required decorator behaviour is odd
-----------------------------------------+----------------------------------
Reporter: [EMAIL PROTECTED] | Owner: ctrochalakis
Status: assigned | Milestone:
Component: Contrib apps | Version: SVN
Resolution: | Keywords: easy-pickings
Stage: Accepted | Has_patch: 1
Needs_docs: 1 | Needs_tests: 0
Needs_better_patch: 1 |
-----------------------------------------+----------------------------------
Comment (by MilosU):
How about this patch? It will redirect to a developer supplied url, that
can be set in code like:
permission_required('polls.can_vote', noperm_url='custom_url')(my_view)
The question is where to redirect in case the noperm_url is set to None,
patch assumes '/', which is again odd. Any suggestions?
--
Ticket URL: <http://code.djangoproject.com/ticket/4617#comment:13>
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
-~----------~----~----~----~------~----~------~--~---