Projet

Général

Profil

Actions

Anomalie #2993

fermé

Django Admin : impossible to delete an OPE

Ajouté par Yann Le Jeune il y a environ 9 ans. Mis à jour il y a presque 9 ans.

Statut:
Fermé
Priorité:
Urgent
Assigné à:
Catégorie:
-
Version cible:
Début:
14 décembre 2015
Echéance:
% réalisé:

0%

Temps estimé:
Élément(s):
Difficulté:

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

  1. response = callback(request, *callback_args, **callback_kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in wrapper

  1. return self.admin_site.admin_view(view)(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view

  1. response = view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/decorators/cache.py" in _wrapped_view_func

  1. response = view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/admin/sites.py" in inner

  1. return view(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper

  1. return bound_func(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapped_view

  1. response = view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func

  1. return func(self, *args2, **kwargs2)

File "/usr/lib/python2.7/dist-packages/django/contrib/admin/options.py" in changelist_view

  1. 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

  1. response = func(self, request, queryset)

File "/usr/lib/python2.7/dist-packages/django/contrib/admin/actions.py" in delete_selected

  1. queryset.delete()

File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in delete

  1. collector.delete()

File "/usr/lib/python2.7/dist-packages/django/db/models/deletion.py" in decorated

  1. transaction.commit(using=self.using)

File "/usr/lib/python2.7/dist-packages/django/db/transaction.py" in commit

  1. connection.commit()

File "/usr/lib/python2.7/dist-packages/django/db/backends/init.py" in commit

  1. self._commit()

File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py" in _commit

  1. 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

Actions

Formats disponibles : Atom PDF