On Sun, 2006-09-24 at 14:58 +0000, zenx wrote: > 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
Sounds like a bug. :-( Since you have a small example that fails so clearly, would you mind posting this to Trac, please (wrap the code in {{{....}}} delimiters so that the formatting comes out OK). Then the ticket won't get lost and we'll remember to fix it shortly. Thanks, Malcolm --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---