Anomalie #4084
ferméCRASH when deleting an IMPORT
0%
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
- response = get_response(request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
- response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py" in _get_response
- response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in view
- return self.dispatch(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper
- return bound_func(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view
- return view_func(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func
- return func.get(self, type(self))(*args2, **kwargs2)
File "/srv/ishtar/ishtar_common/views.py" in dispatch
- **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
- return handler(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py" in post
- return self.delete(request, *args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/django/views/generic/edit.py" in delete
- self.object.delete()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in delete
- return collector.delete()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/deletion.py" in delete
- sender=model, instance=obj, using=self.using
File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send
- for receiver in self._live_receivers(sender)
File "/srv/ishtar/ishtar_common/models_imports.py" in pre_delete_import
- item.delete()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/base.py" in delete
- return collector.delete()
File "/usr/local/lib/python2.7/dist-packages/django/db/models/deletion.py" in delete
- sender=model, instance=obj, using=self.using
File "/usr/local/lib/python2.7/dist-packages/django/dispatch/dispatcher.py" in send
- for receiver in self._live_receivers(sender)
File "/srv/ishtar/archaeological_finds/models_finds.py" in pre_clean_find
- if instance.downstream_treatment:
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related_descriptors.py" in get
- rel_obj = self.get_object(instance)
File "/usr/local/lib/python2.7/dist-packages/django/db/models/fields/related_descriptors.py" in get_object
- 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
- self.model._meta.object_name
Exception Type: DoesNotExist at /import-delete/66/
Exception Value: Treatment matching query does not exist.
Mis à jour par Étienne Loks il y a plus de 6 ans
- Version cible changé de 2.1 à 2.0 - maintenance
- Statut changé de Nouveau à Résolu