Re: Odd integrity error behavior when saving data

2009-03-12 Thread Margie
Gotcha, thanks Malcolm. On Mar 11, 8:26 pm, Malcolm Tredinnick wrote: > On Wed, 2009-03-11 at 19:21 -0700, Margie wrote: > > I have a Tile model that contains a foreign to a Chip: > > > class Tile(models.Model): > >     name=models.CharField(max_length=NAME_LENGTH) > >     chip = models.ForeignK

Re: Odd integrity error behavior when saving data

2009-03-11 Thread Malcolm Tredinnick
On Wed, 2009-03-11 at 19:21 -0700, Margie wrote: > I have a Tile model that contains a foreign to a Chip: > > class Tile(models.Model): > name=models.CharField(max_length=NAME_LENGTH) > chip = models.ForeignKey(Chip) > > I find that I get an integrity error if I create a tile that refers

Odd integrity error behavior when saving data

2009-03-11 Thread Margie
I have a Tile model that contains a foreign to a Chip: class Tile(models.Model): name=models.CharField(max_length=NAME_LENGTH) chip = models.ForeignKey(Chip) I find that I get an integrity error if I create a tile that refers to a chip that has not yet been saved: >>> c = Chip(name="chi