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
This commit is contained in:
Malcolm Tredinnick 2008-08-27 05:44:26 +00:00
parent d70c8907cd
commit 900178d795
1 changed files with 5 additions and 0 deletions

View File

@ -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.
"""}