Anomalie #2990
ferméCrash when adding an account
0%
Description
As we can add an account to someone (or something) without a name !
IntegrityError at /account_management/done
ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « first_name »
Request Method: GET
Request URL: http://ishtar-test.proxience.net/account_management/done
Django Version: 1.4.5
Exception Type: IntegrityError
Exception Value:
ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « first_name »
Exception Location: /usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py in execute, line 52
Python Executable: /usr/bin/uwsgi-core
Python Version: 2.7.3
Python Path:
['/srv/ishtar-ctest/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: ven, 11 Déc 2015 15:51:34 +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 "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
- return 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/ishtar-ctest/ishtar/ishtar_common/wizards.py" in done
- account.save()
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in save
- self.save_base(using=using, force_insert=force_insert, force_update=force_update)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in save_base
- self.save_base(cls=parent, origin=org, using=using)
File "/usr/lib/python2.7/dist-packages/django/db/models/base.py" in save_base
- result = manager._insert([self], fields=fields, return_id=update_pk, using=using, raw=raw)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in _insert
- return insert_query(self.model, objs, fields, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in insert_query
- return query.get_compiler(using=using).execute_sql(return_id)
File "/usr/lib/python2.7/dist-packages/django/db/models/sql/compiler.py" in execute_sql
- cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/util.py" in execute
- return self.cursor.execute(sql, params)
File "/usr/lib/python2.7/dist-packages/django/db/backends/postgresql_psycopg2/base.py" in execute
- return self.cursor.execute(query, args)
Exception Type: IntegrityError at /account_management/done
Exception Value: ERREUR: une valeur NULL viole la contrainte NOT NULL de la colonne « first_name »