Project

General

Profile

Anomalie #3410

Crash when adding a container

Added by Yann Le Jeune over 5 years ago. Updated almost 5 years ago.

Status:
Résolu
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
01/10/2017
Due date:
% Done:

0%

Estimated time:
Difficulté:
Moyen

Description

ValueError at /new-container/0/

Cannot assign 3 "Container.responsible" must be a "Warehouse" instance.

Request Method: POST

Request URL: http://jiap2016.ishtar-archeo.net/new-container/0/

Django Version: 1.4.22

Exception Type: ValueError

Exception Value:

Cannot assign 3 "Container.responsible" must be a "Warehouse" instance.

Exception Location: /usr/lib/python2.7/dist-packages/django/db/models/fields/related.py in set, line 366

Python Executable: /usr/bin/uwsgi-core

Python Version: 2.7.3

Python Path:

['/srv/ishtarjiap2016/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, 10 Jan 2017 12:11:11 +0100

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 "/srv/ishtarjiap2016/ishtar/ishtar_common/views.py" in func

  1. new_item = dct['form'].save(request.user)

File "/srv/ishtarjiap2016/ishtar/archaeological_warehouse/forms.py" in save

  1. new_item = models.Container(**dct)

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

  1. setattr(self, field.name, rel_obj)

File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in set

  1. self.field.name, self.field.rel.to._meta.object_name))

Exception Type: ValueError at /new-container/0/

Exception Value: Cannot assign 3 "Container.responsible" must be a "Warehouse" instance.


Related issues

Related to Ishtar - Anomalie #3415: Cannot add a new containerRésolu01/16/2017

Actions

Associated revisions

Revision 49ac2ee1 (diff)
Added by Étienne Loks over 5 years ago

Fix simple form for adding containers (refs #3410)

History

#1

Updated by Étienne Loks over 5 years ago

  • Status changed from Nouveau to Résolu
#2

Updated by Yann Le Jeune over 5 years ago

  • Status changed from Résolu to En cours

Not ok :(

TypeError at /container_creation/done

'division_12' is an invalid keyword argument for this function

Request Method: GET

Request URL: http://jiap2016.ishtar-archeo.net/container_creation/done

Django Version: 1.4.22

Exception Type: TypeError

Exception Value:

'division_12' is an invalid keyword argument for this function

Exception Location: /usr/lib/python2.7/dist-packages/django/db/models/base.py in init, line 367

Python Executable: /usr/bin/uwsgi-core

Python Version: 2.7.3

Python Path:

['/srv/ishtarjiap2016/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: lun, 16 Jan 2017 15:30:00 +0100

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 "/srv/ishtarjiap2016/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 "/srv/ishtarjiap2016/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 "/srv/ishtarjiap2016/ishtar/archaeological_warehouse/wizards.py" in done

  1. super(ContainerWizard, self).done(form_list)

File "/srv/ishtarjiap2016/ishtar/ishtar_common/wizards.py" in done

  1. return_object)

File "/srv/ishtarjiap2016/ishtar/ishtar_common/wizards.py" in save_model

  1. obj = self.get_saved_model()(**dct)

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

  1. raise TypeError("'%s' is an invalid keyword argument for this function" % kwargs.keys()[0])

Exception Type: TypeError at /container_creation/done

Exception Value: 'division_12' is an invalid keyword argument for this function

#3

Updated by Étienne Loks over 5 years ago

#4

Updated by Étienne Loks over 5 years ago

  • Status changed from En cours to Résolu

Not the same issue cf. #3415

#5

Updated by Étienne Loks almost 5 years ago

  • Target version changed from 16 to 1.0

Also available in: Atom PDF