Yup, I'm suing form_for_model. I guess when I assigned it to foo (foo=form.save()), then I was really assigning the returned object to foo and that's how I can reference what I want from foo.
On Jun 28, 10:00 am, Doug B <[EMAIL PROTECTED]> wrote: > If you are using the helper functions like form_for_model, form.save() > should return the saved object. The helper functions build the save > method for you based on the model definition. If you are doing custom > forms, it's up to you to make the form.save() method to handle the > form->model mappings, call save, and return the saved object. You > could also skip form.save() and simply create the object from the > form.clean_data dict in the view. When you call object.save() it will > get an id. I prefer sticking that stuff in form.save(). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---