Project

General

Profile

Actions

Anomalie #3187

closed

Crash when adding a responsible for a General contractor

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

Status:
Fermé
Priority:
Urgent
Assignee:
Category:
-
Target version:
Start date:
06 September 2016
Due date:
% Done:

0%

Estimated time:
Élément(s):
Difficulté:
Facile

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

Request URL: http://test.ishtar-archeo.net/new-person-noorga/id_select_generalcontractor-file_creation-general_contractor/person_types__6/

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

  1. response = callback(request, *callback_args, **callback_kwargs)

File "/srv/ishtarctest/ishtar/ishtar_common/views.py" in func

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

File "/srv/ishtarctest/ishtar/ishtar_common/forms_common.py" in save

  1. new_item = models.Person.objects.create(**dct)

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

  1. return self.get_query_set().create(**kwargs)

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

  1. obj = self.model(**kwargs)

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-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

Actions #1

Updated by Étienne Loks almost 8 years ago

  • Status changed from Nouveau to Résolu
Actions #2

Updated by Yann Le Jeune almost 8 years ago

  • Status changed from Résolu to Fermé

OK !

Actions

Also available in: Atom PDF