Anomalie #2993
ferméDjango Admin : impossible to delete an OPE
0%
Description
Seen on NHI local instance, linked to a local setting ?
IntegrityError at /admin/archaeological_operations/operation/
ERREUR: UPDATE ou DELETE sur la table « archaeological_operations_operation » viole la contrainte de clé étrangère
« operation_id_refs_id_6c936c556246a5a6 » de la table « archaeological_operations_administrativeact »
DETAIL: La clé (id)=(38230) est toujours référencée à partir de la table « archaeological_operations_administrativeact ».
Request Method: POST
Request URL: http://ishtar-nhi.paleosystem.fr/admin/archaeological_operations/operation/?operation_type__id__exact=115
Django Version: 1.4.5
Exception Type: IntegrityError
Exception Value:
ERREUR: UPDATE ou DELETE sur la table « archaeological_operations_operation » viole la contrainte de clé étrangère
« operation_id_refs_id_6c936c556246a5a6 » de la table « archaeological_operations_administrativeact »
DETAIL: La clé (id)=(38230) est toujours référencée à partir de la table « archaeological_operations_administrativeact ».
Exception Location: /usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py in _commit, line 235
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.3
Python Path:
['/srv/ishtar-NHI/ishtar/',
'.',
'',
'/usr/lib/python2.7',
'/usr/lib/python2.7/plat-linux2',
'/usr/lib/python2.7/lib-tk',
'/usr/lib/python2.7/lib-old',
'/usr/lib/python2.7/lib-dynload',
'/usr/local/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages',
'/usr/lib/python2.7/dist-packages/PIL',
'/usr/lib/python2.7/dist-packages/gtk-2.0',
'/usr/lib/pymodules/python2.7']
Server time: lun, 14 Déc 2015 00:46:07 +0100
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
- response = callback(request, *callback_args, **callback_kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper
- return self.admin_site.admin_view(view)(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
- response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func
- response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner
- return view(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper
- return bound_func(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view
- response = view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func
- return func(self, *args2, **kwargs2)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in changelist_view
- 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
- response = func(self, request, queryset)
File "/usr/lib/python2.7/dist-packages/django/contrib/admin/actions.py" in delete_selected
- queryset.delete()
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in delete
- collector.delete()
File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py" in decorated
- transaction.commit(using=self.using)
File "/usr/lib/python2.7/dist-packages/django/db/transaction.py" in commit
- connection.commit()
File "/usr/lib/python2.7/dist-packages/django/db/backends/init.py" in commit
- self._commit()
File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py" in _commit
- return self.connection.commit()
Exception Type: IntegrityError at /admin/archaeological_operations/operation/
Exception Value: ERREUR: UPDATE ou DELETE sur la table « archaeological_operations_operation » viole la contrainte de clé étrangère
« operation_id_refs_id_6c936c556246a5a6 » de la table « archaeological_operations_administrativeact »
DETAIL: La clé (id)=(38230) est toujours référencée à partir de la table « archaeological_operations_administrativeact ».
Mis à jour par Yann Le Jeune il y a presque 9 ans
- Statut changé de Nouveau à Fermé
Not relevant with new module system