Another bug while deleting user

Hi everybody!

I'm trying to delete user, and receive this unhandled exception:

Traceback (most recent call last):

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, callback_args, *callback_kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/contrib/admin/options.py", line 366, in wrapper return self.admin_site.admin_view(view)(args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/views/decorators/cache.py", line 89, in _wrapped_view_func response = view_func(request, args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/contrib/admin/sites.py", line 196, in inner return view(request, args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/utils/decorators.py", line 25, in _wrapper return bound_func(args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/utils/decorators.py", line 91, in _wrapped_view response = view_func(request, args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/utils/decorators.py", line 21, in bound_func return func(self, args2, *kwargs2)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/contrib/admin/options.py", line 1169, in changelist_view response = self.response_action(request, queryset=cl.get_query_set(request))

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/contrib/admin/options.py", line 908, in response_action response = func(self, request, queryset)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/contrib/admin/actions.py", line 47, in delete_selected queryset.delete()

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/db/models/query.py", line 511, in delete collector.delete()

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/db/models/deletion.py", line 61, in decorated func(self, args, *kwargs)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/db/models/deletion.py", line 269, in delete sender=model, instance=obj, using=self.using

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/dispatch/dispatcher.py", line 172, in send response = receiver(signal=self, sender=sender, **named)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/askbot/models/__init__.py", line 3334, in record_cancel_vote user=instance.user,

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/db/models/fields/related.py", line 350, in __get__ rel_obj = qs.get(**params)

File "/rest/u/apps/askbot_face/ve/lib/python2.6/site-packages/django/db/models/query.py", line 366, in get % self.model._meta.object_name)

DoesNotExist: User matching query does not exist.

Any idea how to fix this?

asked 2013-09-23 09:58:50 -0600
This post is a wiki. Anyone with karma >100 is welcome to improve it.
edit flag offensive 0 remove flag close merge delete

Comments

What are you doing to delete the user?

Evgeny's avatar Evgeny (2013-09-23 11:27:25 -0600) edit

I'm trying to delete it through the Django Admin interface, just clicking on the appropriate link at the user profile. For instance: example.com/admin/auth/user/64/delete/

Kirill's avatar Kirill (2013-09-23 11:32:12 -0600) edit
add a comment see more comments