Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #6365 -- Added `blank=True` to parent attribute of `m2o_recursi…

…ve` model example, thanks dgrant.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit 4ee22e480eb3923131cafa738b35400a14210d98 1 parent 9d18add
@gdub gdub authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  tests/modeltests/m2o_recursive/models.py
View
2  tests/modeltests/m2o_recursive/models.py
@@ -14,7 +14,7 @@
class Category(models.Model):
name = models.CharField(max_length=20)
- parent = models.ForeignKey('self', null=True, related_name='child_set')
+ parent = models.ForeignKey('self', blank=True, null=True, related_name='child_set')
def __unicode__(self):
return self.name
Please sign in to comment.
Something went wrong with that request. Please try again.