mirror of https://github.com/django/django.git
git-svn-id: http://code.djangoproject.com/svn/django/trunk@8609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
d70c8907cd
commit
900178d795
|
@ -151,4 +151,9 @@ True
|
|||
>>> Category.objects.filter(record__left_set__right__category__name='Second').order_by('name')
|
||||
[<Category: First>, <Category: Second>]
|
||||
|
||||
>>> c2 = Child.objects.create(name="Grandchild", parent=c)
|
||||
Traceback (most recent call last):
|
||||
...
|
||||
ValueError: Cannot assign "<Child: Child object>": "Child.parent" must be a "Parent" instance.
|
||||
|
||||
"""}
|
||||
|
|
Loading…
Reference in New Issue