Re: Bug: When editing unique_togethers in a modelformset you can't reverse values

2011-12-07 Thread Yo-Yo Ma
Re Russell: Pertaining to autocommit, I wrapped the view (my base view's dispatch method) in commit_on_success. I asked here (as opposed to opening a ticket) because I wasn't certain there was a way to fix this, but it just seemed too wrong to not at least bring to the table. After Karen's reply

Re: Bug: When editing unique_togethers in a modelformset you can't reverse values

2011-12-07 Thread Karen Tracey
On Wed, Dec 7, 2011 at 6:21 PM, Russell Keith-Magee wrote: > I don't consider it a bug > that Django exposes a database error in this case. > I didn't hear what sounded like a database error in this case. The original note says: Upon attempting to save, you'll receive

Re: Bug: When editing unique_togethers in a modelformset you can't reverse values

2011-12-07 Thread Russell Keith-Magee
On Wed, Dec 7, 2011 at 10:59 AM, Yo-Yo Ma wrote: > Take the following models: > > class Person(models.Model): >    name = models.CharField(_('Person'), max_length=255) > > class Production(models.Model): >    person = models.ForeignKey(Person) >    title =

Bug: When editing unique_togethers in a modelformset you can't reverse values

2011-12-06 Thread Yo-Yo Ma
Take the following models: class Person(models.Model): name = models.CharField(_('Person'), max_length=255) class Production(models.Model): person = models.ForeignKey(Person) title = models.CharField(_('Title'), max_length=255) class Meta: unique_together = (('person',