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
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
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 =
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',