On 5/16/07, John Matthew <[EMAIL PROTECTED]> wrote: > So, assuming my commit=false works, i should be able to say something like: > > form.clean_data['fk_id'] = fkobjid
No; you want your form to not have any field at all for the foreign key, because you want the form to completely ignore the fact that it exists. Trying to have that field in the form and surreptitiously slip values into it after the fact will lead to a world of pain. Use 'save()' with 'commit=False' to return a model object, then directly manipulate that object to set the foreign key correctly before calling the model object's 'save()' method to write to the database. -- "Bureaucrat Conrad, you are technically correct -- the best kind of correct." --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

