#8320: Admin Transaction Management Error
--------------------------------------+-------------------------------------
Reporter: holdenweb | Owner: nobody
Status: reopened | Milestone: 1.0
Component: Admin interface | Version: SVN
Resolution: | Keywords: admin transaction
Stage: Accepted | Has_patch: 0
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
--------------------------------------+-------------------------------------
Changes (by jacob):
* status: closed => reopened
* resolution: worksforme =>
Comment:
Right, we've got a working test case:
{{{
class Parent(models.Model):
name = models.CharField(max_length=10)
other_value = models.IntegerField(unique=True)
def __unicode__(self):
return u"XXX: %s" % self.name
class Child(Parent):
father = models.OneToOneField(Parent, primary_key=True,
to_field="other_value", parent_link=True)
value = models.IntegerField()
def __unicode__(self):
return self.name
}}}
The bug looks to be related to the combination of `parent_link` and
`to_field`; editing a `Child` in the admin will through transaction
management errors intermittently.
--
Ticket URL: <http://code.djangoproject.com/ticket/8320#comment:5>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---