Project

General

Profile

Actions

Anomalie #4084

closed

CRASH when deleting an IMPORT

Added by Yann Le Jeune about 6 years ago. Updated about 6 years ago.

Status:
Fermé
Priority:
Urgent
Assignee:
Category:
Import/Export
Target version:
Start date:
15 May 2018
Due date:
% Done:

0%

Estimated time:
Élément(s):
Difficulté:

Description

Seen on CVL instance, when trying t delete Import for OPE 67480

Traceback:

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/exception.py" in inner

  1. response = get_response(request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response

  1. response = self.process_exception_by_middleware(e, request)

File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response

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

File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view

  1. return self.dispatch(request, *args, **kwargs)

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

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

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

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

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

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

File "/srv/ishtar/ishtar_common/views.py" in dispatch

  1. **kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch

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

File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py" in post

  1. return self.delete(request, *args, **kwargs)

File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py" in delete

  1. self.object.delete()

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

  1. return collector.delete()

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

  1. sender=model, instance=obj, using=self.using

File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send

  1. for receiver in self._live_receivers(sender)

File "/srv/ishtar/ishtar_common/models_imports.py" in pre_delete_import

  1. item.delete()

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

  1. return collector.delete()

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

  1. sender=model, instance=obj, using=self.using

File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send

  1. for receiver in self._live_receivers(sender)

File "/srv/ishtar/archaeological_finds/models_finds.py" in pre_clean_find

  1. if instance.downstream_treatment:

File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related_descriptors.py" in get

  1. rel_obj = self.get_object(instance)

File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related_descriptors.py" in get_object

  1. return qs.get(self.field.get_reverse_related_filter(instance))

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

  1. self.model._meta.object_name

Exception Type: DoesNotExist at /import-delete/66/

Exception Value: Treatment matching query does not exist.

Actions

Also available in: Atom PDF