When I try to delete a user from within the admin I get:

TypeError at /admin/auth/user/

super(type, obj): obj must be an instance or subtype of type

It's triggered by:

File "/home/django-sites/CALS/cals/models.py" in get_query_set
  99.         return super(DescriptionManager,
self).get_query_set().filter(current=True)

This manager sits on a model that has a foreign key to User.

class DescriptionManager(models.Manager):

    def get_query_set(self):
        return super(DescriptionManager,
self).get_query_set().filter(current=True)

class Description(Freetext):
    # Freetext has abstract=True
    ..
    objects = DescriptionManager()
    ..

The manager's self is at that moment a
django.db.models.fields.related.RelatedManager.

I can delete the User from within the shell just fine with
user_instance.delete()


HM

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to