Django

Code

Show
Ignore:
Timestamp:
01/12/08 20:19:06 (9 months ago)
Author:
gwilson
Message:

Fixed #6365 -- Added blank=True to parent attribute of m2o_recursive model example, thanks dgrant.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/tests/modeltests/m2o_recursive/models.py

    r5876 r7015  
    1515class Category(models.Model): 
    1616    name = models.CharField(max_length=20) 
    17     parent = models.ForeignKey('self', null=True, related_name='child_set') 
     17    parent = models.ForeignKey('self', blank=True, null=True, related_name='child_set') 
    1818 
    1919    def __unicode__(self):