Projet

Général

Profil

Actions

Anomalie #3649

fermé

Delete FINDS : deleting a find without OPE or CONTEXTE RECORD crashes

Ajouté par Yann Le Jeune il y a plus de 6 ans. Mis à jour il y a plus de 6 ans.

Statut:
Résolu
Priorité:
Haut
Assigné à:
Catégorie:
DB
Version cible:
Début:
11 juillet 2017
Echéance:
% réalisé:

0%

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

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

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

File "/var/lib/python-django-ishtar/ishtar_common/wizards.py" in _wrapped_view

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

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

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

File "/var/lib/python-django-ishtar/ishtar_common/wizards.py" in dispatch

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

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in dispatch

  1. response = super(WizardView, self).dispatch(request, *args, **kwargs)

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

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

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in get

  1. ), **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in render_done

  1. return super(NamedUrlWizardView, self).render_done(form, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/formtools/wizard/views.py" in render_done

  1. done_response = self.done(final_form_list, **kwargs)

File "/var/lib/python-django-ishtar/ishtar_common/wizards.py" in done

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

Seens on Picardie Instance v0.99.22-deb

Mis à jour par Étienne Loks il y a plus de 6 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 6 ans

New deb package generated and deployed. Should be OK on "picardie".

Actions

Formats disponibles : Atom PDF