Ticket #7498: dj-foreignkey-typecheck-testcase.patch
File dj-foreignkey-typecheck-testcase.patch, 673 bytes (added by , 16 years ago) |
---|
-
regressiontests/many_to_one_regress/models.py
73 73 ... 74 74 ValueError: Cannot assign "<First: First object>": "Child.parent" must be a "Parent" instance. 75 75 76 >>> c2 = Child.objects.create(name="Grandchild", parent=c) 77 Traceback (most recent call last): 78 ... 79 TypeError: Invalid value: 'parent' should be a <class 'regressiontests.many_to_one_regress.models.Parent'> instance, not a <class 'regressiontests.many_to_one_regress.models.Child'> 80 76 81 """}