Anomalie #3649
ferméDelete FINDS : deleting a find without OPE or CONTEXTE RECORD crashes
0%
Description
If we delete an OPE, FINDS stays in DB. If we try to delete these finds we can't.
It's still possible with Django-admin.
AttributeError at /find_deletion/done
'NoneType' object has no attribute 'delete'
Request Method: GET
Request URL: http://picardie.ishtar-archeo.net/find_deletion/done
Django Version: 1.4.5
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'delete'
Exception Location: /var/lib/python-django-ishtar/ishtar_common/wizards.py in done, line 1236
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.3
Python Path:
['/var/lib/python-django-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/pymodules/python2.7']
Server time: mar, 11 Jul 2017 13:26:28 +0200
Traceback:
File "/usr/lib/python2.7/dist-packages/django/core/handlers/base.py" in get_response
- response = callback(request, *callback_args, **callback_kwargs)
File "/var/lib/python-django-ishtar/ishtar_common/wizards.py" in _wrapped_view
- return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
- return self.dispatch(request, *args, **kwargs)
File "/var/lib/python-django-ishtar/ishtar_common/wizards.py" in dispatch
- return super(Wizard, self).dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in dispatch
- response = super(WizardView, self).dispatch(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch
- return handler(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in get
- ), **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in render_done
- return super(NamedUrlWizardView, self).render_done(form, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in render_done
- done_response = self.done(final_form_list, **kwargs)
File "/var/lib/python-django-ishtar/ishtar_common/wizards.py" in done
- obj.delete()
Exception Type: AttributeError at /find_deletion/done
Exception Value: 'NoneType' object has no attribute 'delete'
Mis à jour par Yann Le Jeune il y a plus de 7 ans
Seens on Picardie Instance v0.99.22-deb
Mis à jour par Étienne Loks il y a plus de 7 ans
- Statut changé de Nouveau à Résolu
The problem was related to deletion when the warehouse module is activated.
Solved on "git" instances. A new "deb" package will be generated this afternoon.
Mis à jour par Étienne Loks il y a plus de 7 ans
New deb package generated and deployed. Should be OK on "picardie".