Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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
  • Loading branch information...
commit 900178d79594898f1d924c69800d48b6232bc41f 1 parent d70c890
Malcolm Tredinnick authored August 27, 2008
5  tests/regressiontests/many_to_one_regress/models.py
@@ -151,4 +151,9 @@ def __unicode__(self):
151 151
 >>> Category.objects.filter(record__left_set__right__category__name='Second').order_by('name')
152 152
 [<Category: First>, <Category: Second>]
153 153
 
  154
+>>> c2 = Child.objects.create(name="Grandchild", parent=c)
  155
+Traceback (most recent call last):
  156
+    ...
  157
+ValueError: Cannot assign "<Child: Child object>": "Child.parent" must be a "Parent" instance.
  158
+
154 159
 """}

0 notes on commit 900178d

Please sign in to comment.
Something went wrong with that request. Please try again.