On Fri, Feb 4, 2011 at 10:23 AM, Ivo Brodien <[email protected]> wrote:
>
>> Don't forget the login_required decorator, because if an anonymous
>> user try to get that page he will get an exception (I think, didn't
>> try that)
>
> No, they will be redirected to login and after login they come back to the 
> original page, if the form considers the ’next’ field. How nice is that!?
>

Yeah, I know, the 'next' magic, with GET or POST, it's veeeery nice ;)

The thing that I was saying is that he should validate that the user
is logged in, (login_required decorator, or
request.user.is_authenticated), because if he doesn't then he will
have an anonymous user instance, and I think that isn't what he
wants...

-- 
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