Anomalie #3410
ferméCrash when adding a container
0%
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
- response = callback(request, *callback_args, **callback_kwargs)
File "/srv/ishtarjiap2016/ishtar/ishtar_common/views.py" in func
- new_item = dct['form'].save(request.user)
File "/srv/ishtarjiap2016/ishtar/archaeological_warehouse/forms.py" in save
- new_item = models.Container(**dct)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in init
- setattr(self, field.name, rel_obj)
File "/usr/lib/python2.7/dist-packages/django/db/models/fields/related.py" in set
- 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.
Mis à jour par Yann Le Jeune il y a presque 8 ans
- Statut changé de Résolu à 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
- response = callback(request, *callback_args, **callback_kwargs)
File "/srv/ishtarjiap2016/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 "/srv/ishtarjiap2016/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 "/srv/ishtarjiap2016/ishtar/archaeological_warehouse/wizards.py" in done
- super(ContainerWizard, self).done(form_list)
File "/srv/ishtarjiap2016/ishtar/ishtar_common/wizards.py" in done
- return_object)
File "/srv/ishtarjiap2016/ishtar/ishtar_common/wizards.py" in save_model
- obj = self.get_saved_model()(**dct)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in init
- 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
Mis à jour par Étienne Loks il y a presque 8 ans
- Lié à Anomalie #3415: Cannot add a new container ajouté
Mis à jour par Étienne Loks il y a presque 8 ans
- Statut changé de En cours à Résolu
Not the same issue cf. #3415