Re: new record - onetoonefield - create related record

2009-02-06 Thread Karen Tracey
On Sat, Jan 31, 2009 at 11:01 AM, John M wrote: > > Hi Karen, and thanks for the reply. > > I've always wanted to use the 1-1 field, but whenever a new parent > record is added, I want it to automatically add (via the save() ) > ovoerride above to the child 1-1 table. > >

Re: new record - onetoonefield - create related record

2009-01-31 Thread John M
Hi Karen, and thanks for the reply. I've always wanted to use the 1-1 field, but whenever a new parent record is added, I want it to automatically add (via the save() ) ovoerride above to the child 1-1 table. Yes, the debug does print, and the above code seems to work from the shell too, it's

Re: new record - onetoonefield - create related record

2009-01-30 Thread Karen Tracey
On Fri, Jan 30, 2009 at 4:29 PM, John M wrote: > > Given the model's below, I'm trying to make it add the related 1-1 > record automatically, but it's not working, what am i missing? > Perhaps if you described what "not working" looks like in more detail it would be

new record - onetoonefield - create related record

2009-01-30 Thread John M
Given the model's below, I'm trying to make it add the related 1-1 record automatically, but it's not working, what am i missing? Thanks John class unixhost(models.Model): name = models.CharField(max_length=50) # short name fqdn =