Anomalie #3577
ferméCrash when adding a PERSON without Title
0%
Description
Seen on ETIOLLES Instance : Ishtar v0.99.16.2-git¶
ValueError at /new-person/id_select_general-operation_creation-scientist/person_types__2-3/
Cannot assign u'' "Person.title" must be a "TitleType" instance.
Request Method: POST
Request URL: http://etiolles.ishtar-archeo.net/new-person/id_select_general-operation_creation-scientist/person_types__2-3/
Django Version: 1.4.22
Exception Type: ValueError
Exception Value:
Cannot assign u'' "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/ishtaretiolles/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, 28 Mar 2017 11:24:42 +0200
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/ishtaretiolles/ishtar/ishtar_common/views.py" in func
- new_item = dct['form'].save(request.user)
File "/srv/ishtaretiolles/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/id_select_general-operation_creation-scientist/person_types__2-3/
Exception Value: Cannot assign u'' "Person.title" must be a "TitleType" instance.
Mis à jour par Étienne Loks il y a presque 8 ans
- Difficulté
Facilesupprimé - Version cible mis à 1.0
- Catégorie changé de UI à Forms and wizards