Project

General

Profile

Anomalie #2170

Bug (DoesNotExist at /admin/auth/user/) when trying to remove users

Added by Valérie-Emma Leroux over 7 years ago. Updated over 7 years ago.

Status:
Résolu
Priority:
Urgent
Assignee:
-
Category:
-
Target version:
-
Start date:
12/11/2014
Due date:
% Done:

0%

Estimated time:
Difficulté:

Description

Request Method: POST
Request URL: http://ishtar-amiens.proxience.net/admin/auth/user/

Django Version: 1.4.5
Python Version: 2.7.3
Installed Applications:
['django.contrib.auth',
 'django.contrib.admin',
 'django.contrib.contenttypes',
 'django.contrib.sessions',
 'django.contrib.sites',
 'django.contrib.gis',
 'django.contrib.staticfiles',
 'django.contrib.formtools',
 'south',
 'registration',
 'ishtar_common',
 'archaeological_files',
 'archaeological_operations',
 'archaeological_context_records',
 'archaeological_warehouse',
 'archaeological_finds']
Installed Middleware:
['django.middleware.common.CommonMiddleware',
 'django.contrib.sessions.middleware.SessionMiddleware',
 'django.middleware.csrf.CsrfViewMiddleware',
 'django.contrib.auth.middleware.AuthenticationMiddleware',
 'django.contrib.messages.middleware.MessageMiddleware',
 'django.middleware.locale.LocaleMiddleware']


Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
  109.                         response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper
  384.                 return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
  91.                     response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
  89.         response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner
  196.             return view(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper
  25.             return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
  91.                     response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func
  21.                 return func(self, *args2, **kwargs2)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in changelist_view
  1187.                 response = self.response_action(request, queryset=cl.get_query_set(request))
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in response_action
  926.             response = func(self, request, queryset)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/actions.py" in delete_selected
  47.             queryset.delete()
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in delete
  514.         collector.delete()
File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py" in decorated
  61.             func(self, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py" in delete
  269.                     sender=model, instance=obj, using=self.using
File "/usr/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send
  172.             response = receiver(signal=self, sender=sender, **named)
File "/usr/local/lib/python2.7/dist-packages/simple_history/models.py" in post_delete
  156.         self.create_historical_record(instance, '-')
File "/srv/ishtar-amiens/ishtar/ishtar_common/models.py" in create_historical_record
  106.         history_modifier = getattr(instance, 'history_modifier', None)
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in __get__
  350.             rel_obj = qs.get(**params)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in get
  366.                     % self.model._meta.object_name)

Exception Type: DoesNotExist at /admin/auth/user/

En particulier :

**File "/usr/local/lib/python2.7/dist-packages/simple_history/models.py" in post_delete

  1. self.create_historical_record(instance, '-')

File "/srv/ishtar-amiens/ishtar/ishtar_common/models.py" in create_historical_record

  1. history_modifier = getattr(instance, 'history_modifier', None)**

Associated revisions

Revision 0081f00f (diff)
Added by Étienne Loks over 7 years ago

Fix history on batch removing of users (refs #2170)

History

#1

Updated by Étienne Loks over 7 years ago

  • Status changed from Nouveau to Résolu

Also available in: Atom PDF