Hi

I tried this in Magic Removal:

class Item(models.Model):
    name = models.CharField('Name', maxlength = 50,)
    parent = models.ForeignKey('Item', blank = True, null = True,
related_name = 'child',)

When trying to get the childs of an object by issueing
item.child_set.all(), it raises an exception:
'Item' object has no attribute 'child_set'.

Rudolph


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" 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-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to