Anomalie #3430
ferméCrash when adding OPE
0%
Description
Seen on Etiolles instance
MultipleObjectsReturned at /operation_creation/done
get() returned more than one Parcel -- it returned 10! Lookup parameters were {'town': , 'parcel_number': u'397', 'section': u'0C', 'history_modifier': , 'public_domain': False}
Request Method: GET
Request URL: http://etiolles.ishtar-archeo.net/operation_creation/done
Django Version: 1.4.22
Exception Type: MultipleObjectsReturned
Exception Value:
get() returned more than one Parcel -- it returned 10! Lookup parameters were {'town': , 'parcel_number': u'397', 'section': u'0C', 'history_modifier': , 'public_domain': False}
Exception Location: /usr/lib/python2.7/dist-packages/django/db/models/query.py in get, line 368
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, 24 Jan 2017 18:00:40 +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/ishtaretiolles/ishtar/ishtar_common/wizards.py" in _wrapped_view
- return view_func(request, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view
- return self.dispatch(request, *args, **kwargs)
File "/srv/ishtaretiolles/ishtar/ishtar_common/wizards.py" in dispatch
- return super(Wizard, 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/ishtaretiolles/ishtar/ishtar_common/wizards.py" in done
- return_object)
File "/srv/ishtaretiolles/ishtar/ishtar_common/wizards.py" in save_model
- value, created = model.objects.get_or_create(**value)
File "/usr/lib/python2.7/dist-packages/django/db/models/manager.py" in get_or_create
- return self.get_query_set().get_or_create(**kwargs)
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in get_or_create
- return self.get(**lookup), False
File "/usr/lib/python2.7/dist-packages/django/db/models/query.py" in get
- % (self.model._meta.object_name, num, kwargs))
Exception Type: MultipleObjectsReturned at /operation_creation/done
Exception Value: get() returned more than one Parcel -- it returned 10! Lookup parameters were {'town': , 'parcel_number': u'397', 'section': u'0C', 'history_modifier': , 'public_domain': False}
Mis à jour par Étienne Loks il y a presque 8 ans
- Statut changé de Nouveau à Résolu
Should be OK now