Django

Code

Changeset 2245

Show
Ignore:
Timestamp:
02/03/06 14:29:45 (3 years ago)
Author:
adrian
Message:

magic-removal: Fixed bugs in m2o_recursive2 model unit tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/branches/magic-removal/tests/modeltests/m2o_recursive2/models.py

    r2195 r2245  
    1212class Person(models.Model): 
    1313    full_name = models.CharField(maxlength=20) 
    14     mother = models.ForeignKey('self', null=True, related_name='mothers_child') 
    15     father = models.ForeignKey('self', null=True, related_name='fathers_child') 
     14    mother = models.ForeignKey('self', null=True, related_name='mothers_child_set') 
     15    father = models.ForeignKey('self', null=True, related_name='fathers_child_set') 
    1616 
    1717    def __repr__(self):