Django

Code

Show
Ignore:
Timestamp:
08/27/08 00:44:26 (3 months ago)
Author:
mtredinnick
Message:

Added a test from kcarnold to show that #7498 is fixed. Refs #7498.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/regressiontests/many_to_one_regress/models.py

    r8198 r8609  
    152152[<Category: First>, <Category: Second>] 
    153153 
     154>>> c2 = Child.objects.create(name="Grandchild", parent=c) 
     155Traceback (most recent call last): 
     156    ... 
     157ValueError: Cannot assign "<Child: Child object>": "Child.parent" must be a "Parent" instance. 
     158 
    154159"""}