Projet

Général

Profil

Actions

Anomalie #3429

fermé

Crash during CONTEXT RECORD import / Etiolles instance

Ajouté par Yann Le Jeune il y a presque 8 ans. Mis à jour il y a presque 8 ans.

Statut:
Fermé
Priorité:
Urgent
Assigné à:
Catégorie:
-
Version cible:
Début:
22 janvier 2017
Echéance:
% réalisé:

0%

Temps estimé:
Élément(s):
Difficulté:
Moyen

Description

MultipleObjectsReturned at /import-list/

get() returned more than one Dating -- it returned 2! Lookup parameters were {u'period': }

Request Method: POST

Request URL: http://etiolles.ishtar-archeo.net/import-list/

Django Version: 1.4.22

Exception Type: MultipleObjectsReturned

Exception Value:

get() returned more than one Dating -- it returned 2! Lookup parameters were {u'period': }

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: dim, 22 Jan 2017 18:10:11 +0100

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/ishtaretiolles/ishtar/ishtar_common/wizards.py" in _wrapped_view

  1. return view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in view

  1. return self.dispatch(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in _wrapper

  1. return bound_func(*args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/contrib/auth/decorators.py" in _wrapped_view

  1. return view_func(request, *args, **kwargs)

File "/usr/lib/python2.7/dist-packages/django/utils/decorators.py" in bound_func

  1. return func(self, *args2, **kwargs2)

File "/srv/ishtaretiolles/ishtar/ishtar_common/views.py" in dispatch

  1. **kwargs)

File "/usr/lib/python2.7/dist-packages/django/views/generic/base.py" in dispatch

  1. return handler(request, *args, **kwargs)

File "/srv/ishtaretiolles/ishtar/ishtar_common/views.py" in post

  1. imprt.importation()

File "/srv/ishtaretiolles/ishtar/ishtar_common/models.py" in importation

  1. importer.importation(self.data_table)

File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in importation

  1. self._importation(table)

File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in _importation

  1. self._line_processing(idx_line, line)

File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in _line_processing

  1. obj, created = self.get_object(self.OBJECT_CLS, data)

File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in get_object

  1. new_created)

File "/srv/ishtaretiolles/ishtar/ishtar_common/data_importer.py" in get_field

  1. **v)

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

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

  1. return self.get(**lookup), False

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

  1. % (self.model._meta.object_name, num, kwargs))

Exception Type: MultipleObjectsReturned at /import-list/

Exception Value: get() returned more than one Dating -- it returned 2! Lookup parameters were {u'period': }

Actions

Formats disponibles : Atom PDF