allow users who are not logged in to submit data first and then log in or register
I have a data submission form that is visible to everyone, but a user
must be registered & logged in before the data can be submitted
I want to allow users who are not logged in to submit data through
the form first, and then ask him to either register or log in. After
the registration/login process is finished, the data submitted by that
user would then be saved to the DB.
What's the best way to achieve that? It doesn't seem like the
@login_required decorator would work because the initial data
submitted by the user wouldn't be preserved by @login_required.
Is there a decorator similar to @login_required but would do what I
want?
Thanks.
--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to django-users+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home