Commit 900178d7 authored by Malcolm Tredinnick's avatar Malcolm Tredinnick
Browse files

Added a test from kcarnold to show that #7498 is fixed. Refs #7498.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@8609 bcc190cf-cafb-0310-a4f2-bffc1f526a37
parent d70c8907
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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.

"""}