magic-removal: Fixed incorrect related_name in m2o_recursive unit tests
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2251 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bd5b9412b3
commit
36c66d7d39
|
@ -14,7 +14,7 @@ from django.db import models
|
|||
|
||||
class Category(models.Model):
|
||||
name = models.CharField(maxlength=20)
|
||||
parent = models.ForeignKey('self', null=True, related_name='child')
|
||||
parent = models.ForeignKey('self', null=True, related_name='child_set')
|
||||
|
||||
def __repr__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Reference in New Issue