On 11/2/07, crybaby <[EMAIL PROTECTED]> wrote:
> I want to display the form even when the user is not logged in, but
> want to allow them to do form submission.  So when they post the data,
> @login_required decorator is called on one of the view functions.  Now
> user logs in and I want the earlier post data (form submission) to be
> passed to the view after @login_required is called.
>
> Any idea how this can be achieved?

There's really no good way to preserve the data across a redirect, and
that's by design; you probably want to look at something like what
Django's comment system does, where a username and password box are
displayed as part of the form (Django does this by having the form for
registered comments subclass the AuthenticationForm in
django.contrib.auth.forms).

-- 
"Bureaucrat Conrad, you are technically correct -- the best kind of correct."

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