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.