mirror of
https://github.com/django/django.git
synced 2025-06-05 03:29:12 +00:00
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):
|
class Person(models.Model):
|
||||||
full_name = models.CharField(maxlength=20)
|
full_name = models.CharField(maxlength=20)
|
||||||
mother = models.ForeignKey('self', null=True, related_name='mothers_child')
|
mother = models.ForeignKey('self', null=True, related_name='mothers_child_set')
|
||||||
father = models.ForeignKey('self', null=True, related_name='fathers_child')
|
father = models.ForeignKey('self', null=True, related_name='fathers_child_set')
|
||||||
|
|
||||||
def __repr__(self):
|
def __repr__(self):
|
||||||
return self.full_name
|
return self.full_name
|
||||||
|
Loading…
x
Reference in New Issue
Block a user