Project

General

Profile

Actions

Anomalie #3649

closed

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

Added by Yann Le Jeune over 8 years ago. Updated over 8 years ago.

Status:
Résolu
Priority:
Haut
Assignee:
Category:
DB
Target version:
Start date:
11 July 2017
Due date:
% Done:

0%

Estimated time:
É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'

Actions #1

Updated by Yann Le Jeune over 8 years ago

Seens on Picardie Instance v0.99.22-deb

Actions #2

Updated by Étienne Loks over 8 years ago

  • Status changed from Nouveau to 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.

Actions #3

Updated by Étienne Loks over 8 years ago

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

Actions

Also available in: Atom PDF