Author: mtredinnick
Date: 2008-08-27 00:44:26 -0500 (Wed, 27 Aug 2008)
New Revision: 8609
Modified:
django/trunk/tests/regressiontests/many_to_one_regress/models.py
Log:
Added a test from kcarnold to show that #7498 is fixed. Refs #7498.
Modified: django/trunk/tests/regressiontests/many_to_one_regress/models.py
===================================================================
--- django/trunk/tests/regressiontests/many_to_one_regress/models.py
2008-08-27 05:22:33 UTC (rev 8608)
+++ django/trunk/tests/regressiontests/many_to_one_regress/models.py
2008-08-27 05:44:26 UTC (rev 8609)
@@ -151,4 +151,9 @@
>>> 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.
+
"""}
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---