Hello all,

I have a form for submitting samples. After the user submits a sample,
I would like to give them a button that says "Use last form to fill in
this form" or whatever. Basically, the way I have thought to do this
is:

last_sample = SSF.objects.filter(ssfvalue=request.user.id).order_by('-
id')[:1].values() which would give me a tuple containing a dictionary
of key:value pairs of the last submitted data.

Now I would like to be able to just plop that into a new row in my
table and then present that to the user to verify/alter etc. I am
using a form wizard which is why intitial values won't work (I think).

I have tried all sort of string concatenation, tuples, lists - can't
figure out how to do

s=SSF(name="the name", test1=1...)
s.save()

Thanks for any advice.

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to