Hi,
I get always the following error when deleting objects with
ManyToMany(self) relationships in the admin. Have tried with different
models and always getting the same error. Doesn't the admin interface
support ManyToMany relationships with the same table?

TypeError at /admin/person/person/2/delete/
getattr(): attribute name must be string

This is the model:
=============

class Person(models.Model):
    name = models.CharField(maxlength=20)
    friends = models.ManyToManyField('self',blank=True)
    idols = models.ManyToManyField('self', symmetrical=False,
related_name='stalkers',blank=True)

    def __str__(self):
        return self.name

    class Admin:
        pass


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
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