Anomalie #3187
ferméCrash when adding a responsible for a General contractor
0%
Description
ValueError at /new-person-noorga/id_select_generalcontractor-file_creation-general_contractor/person_types__6/
Cannot assign u'1' "Person.title" must be a "TitleType" instance.
Request Method: POST
Django Version: 1.4.22
Exception Type: ValueError
Exception Value:
Cannot assign u'1' "Person.title" must be a "TitleType" 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/ishtarctest/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']
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/ishtarctest/ishtar/ishtar_common/views.py" in func
- new_item = dct['form'].save(request.user)
File "/srv/ishtarctest/ishtar/ishtar_common/forms_common.py" in save
- new_item = models.Person.objects.create(**dct)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in create
- return self.get_query_set().create(**kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in create
- obj = self.model(**kwargs)
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-person-noorga/id_select_generalcontractor-file_creation-general_contractor/person_types__6/
Exception Value: Cannot assign u'1' "Person.title" must be a "TitleType" instance.
Seen on TEST_DEV instance