hi all,

i have a model like this:

class Verb(models.Model):
    name = models.CharField(maxlength=20)
    related_verbs = models.ManyToManyField('self',null=True,
blank=True)
    def __str__(self):
        return self.name
    class Admin:
        pass

i added a new 'verb' object, using the django admin, when i want to
delete that object, django admin throws exception below:

TypeError at /admin/lists/verb/1/delete/
getattr(): attribute name must be stringRequest Method: GET
Request URL:    http://127.0.0.1:8000/admin/lists/verb/1/delete/
Exception Type: TypeError
Exception Value:        getattr(): attribute name must be string
Exception Location:     /usr/lib/python2.4/site-packages/django/contrib/
admin/views/main.py in _get_deleted_objects, line 464

and, in shell, object add and delete methods works as expected.


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to