-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, I wondered if someone has an about this?. I take an uploaded zip/tarball and bind it to a model form. I then extract it to a temporary folder and use this as a resources folder when I compile a flash movie. If the contents of the flash movie are ok for the user i want to commit to the database and move on to some further processing I call commit=False on the first view like:
variables = form.save(commit=False) and i pass this to the flash preview like: return render_to_response('preview.html', {'variables': variables}) can i pass the uncommitted 'variables' back to another view (in another form submission if possible) and then call save() in this new view?. Something like this in the second view: if request.method == 'POST': # passed in hidden form variables from the flash preview data = {'themename' : form.themename, 'userfile' : form.userfile} # Save the user approved theme in the database final_form = ThemeForm(data) final_form.save() Sorry if i have missed something obvious here Ian - -- http://ianlawrence.info -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: http://getfiregpg.org iD8DBQFIfzZjZXia3Con1vcRAiHgAKDLSDIkVR4JzrzLT7U1B1hv0iaEfACfYNud rB/MUHuIOUVe8H5GAIRaLT4= =qBUC -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---