1
0
mirror of https://github.com/django/django.git synced 2025-01-27 10:39:40 +00:00

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

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