Skip to content
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...
1 parent 9d18add commit 4ee22e480eb3923131cafa738b35400a14210d98 @gdub gdub committed
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

0 comments on commit 4ee22e4

Please sign in to comment.
Something went wrong with that request. Please try again.