#5775: staff_member_required decorator looses query parameters
-----------------------+----------------------------------------------------
Reporter: jdetaeye | Owner: nobody
Status: new | Component: Admin interface
Version: SVN | Keywords: admin staff_member_required
Stage: Unreviewed | Has_patch: 1
-----------------------+----------------------------------------------------
To reproduce the problem:
1. Open a new browser window
2. Enter a admin url that uses a query parameter.
A good example is the url for displaying a filtered or sorted list of
objects: {{{/admin/yourapp/yourmodel/?yourfield__exact=12}}}
3. Since you're not authenticated yet, the login page is shown.
4. After a successfull login, you will be redirected to the page:
{{{/admin/yourapp/yourmodel/}}}
The query parameter is lost along the way...[[BR]]
Keeping the query parameters is handy when e.g. the user wants to bookmark
such a filtered or sorted list.
The fix is pretty simple: The problem is the use of the request.path
field, rather than the request.get_full_path method.[[BR]]
The change affects affects both the normal admin as well as the new-forms
admin branch, and the same patch applies.
--
Ticket URL: <http://code.djangoproject.com/ticket/5775>
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
-~----------~----~----~----~------~----~------~--~---