summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Wilson Jr <gary.wilson@gmail.com>2008-01-13 02:19:06 +0000
committerGary Wilson Jr <gary.wilson@gmail.com>2008-01-13 02:19:06 +0000
commit4ee22e480eb3923131cafa738b35400a14210d98 (patch)
tree2953044360e5dce521f268a2fe964ac1cfc9ea84
parent9d18adde00531bf3b6b3c66466a30aa7bd3af32f (diff)
Fixed #6365 -- Added `blank=True` to parent attribute of `m2o_recursive` model example, thanks dgrant.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@7015 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--tests/modeltests/m2o_recursive/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/modeltests/m2o_recursive/models.py b/tests/modeltests/m2o_recursive/models.py
index c38200a25b..f58f7fe0f5 100644
--- a/tests/modeltests/m2o_recursive/models.py
+++ b/tests/modeltests/m2o_recursive/models.py
@@ -14,7 +14,7 @@ from django.db import models
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