Re: Creating objects with references together

2009-03-16 Thread Collin Grady
Usage questions like this belong on the django-users list - this list is for the development of django itself. On Mon, Mar 16, 2009 at 9:38 AM, Yaniv Haber wrote: > > hi, > > I need to create 2 objects, one containing a reference to the other, > in one shot. I get an IntegrityError exception whi

Creating objects with references together

2009-03-16 Thread Yaniv Haber
hi, I need to create 2 objects, one containing a reference to the other, in one shot. I get an IntegrityError exception while trying to do so, claiming that the foreign key is None on creation. Hope someone can help... (when I refresh the browser and rePOST the data it works as the Product object