On Dec 6, 6:09 pm, Wayne Smith <[email protected]> wrote:
> > After the second form is done and valid, I would like to save the
> > information that comes to it to Image, in the same row that has the id
> > I was passing.
>
> > How can I do this?
>
> image.description = information user provided
> image.save()

Thanks, that's fine, but I was wondering if there was a more scalable
way. I have more fields than just "description", so it would be nice
if they could be all saved with one method call, so I don't have to
maintain this code in case I change the model.

> By the way, your overridden save() method looks a bit odd.  It needs to call
> save() on its superclass as well.

But I do:
models.Model.save(self)

Isn't that what you meant?

And how do I get that information provided by the user?
Something like:
Image i = ImageUploadDetailsForm.save(commit=False)
?

Thanks.

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