Projet

Général

Profil

Bug #67535

Page.MultipleObjectsReturned: get() returned more than one Page -- it returned 2!

Ajouté par Sentry Io il y a presque 2 ans. Mis à jour il y a presque 2 ans.

Statut:
Rejeté
Priorité:
Normal
Assigné à:
-
Version cible:
-
Début:
20 juillet 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/publik/issues/62584/

Page.MultipleObjectsReturned: get() returned more than one Page -- it returned 2!
(9 additional frame(s) were not displayed)
...
  File "combo/data/utils.py", line 150, in import_site
    pages = Page.load_serialized_pages(data.get('pages') or [], request=request)
  File "combo/data/models.py", line 627, in load_serialized_pages
    page, created = Page.objects.get_or_create(slug=json_page['fields']['slug'])
  File "django/db/models/manager.py", line 82, in manager_method
    return getattr(self.get_queryset(), name)(*args, **kwargs)
  File "django/db/models/query.py", line 538, in get_or_create
    return self.get(**kwargs), False
  File "django/db/models/query.py", line 412, in get
    (self.model._meta.object_name, num)

Historique

#1

Mis à jour par Nicolas Roche il y a presque 2 ans

  • Projet changé de Suivi des traces à Combo

Sur un import de site.

#3

Mis à jour par Frédéric Péters il y a presque 2 ans

  • Statut changé de Nouveau à Rejeté

doublon, #59509

Formats disponibles : Atom PDF