I'm seeing strange behaviour of login_required decorator: any view
decorated with it first sends to login page, then to url defined in
LOGIN_REDIRECT_URL. The url to decorated view is supplied in next
parameter (/login/?next=/path/to/view/) but is never executed.

Looking at login view code I see that the redirect is taken from
redirect_field_name field (which in my case is default "next") of
REQUEST. This works as I expect if I do GET, but this value is not set
if I issue POST request with credentials after displaying form.

Do I have to write my own login machinery to achieve such
functionality (redirect to decorated view after login)?

Cheers
J.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to