magic-removal: Fixed bugs in m2o_recursive2 model unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2245 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
6fa54ec9fd
commit
5f646ff486
|
@ -11,8 +11,8 @@ from django.db import models
|
|||
|
||||
class Person(models.Model):
|
||||
full_name = models.CharField(maxlength=20)
|
||||
mother = models.ForeignKey('self', null=True, related_name='mothers_child')
|
||||
father = models.ForeignKey('self', null=True, related_name='fathers_child')
|
||||
mother = models.ForeignKey('self', null=True, related_name='mothers_child_set')
|
||||
father = models.ForeignKey('self', null=True, related_name='fathers_child_set')
|
||||
|
||||
def __repr__(self):
|
||||
return self.full_name
|
||||
|
|
Loading…
Reference in New Issue