Projet

Général

Profil

Bug #62234

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

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

Statut:
Nouveau
Priorité:
Normal
Assigné à:
-
Catégorie:
-
Version cible:
-
Début:
28 février 2022
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Non
Planning:
Non

Description

https://sentry.entrouvert.org/entrouvert/nfrance/issues/54663/

Variable.MultipleObjectsReturned: get() returned more than one Variable -- it returned 2!
(6 additional frame(s) were not displayed)
...
  File "django/views/generic/base.py", line 158, in get
    context = self.get_context_data(**kwargs)
  File "hobo/environment/forms.py", line 183, in get_context_data
    initial_data[variable_name] = get_variable(variable_name).value
  File "hobo/environment/utils.py", line 113, in get_variable
    variable = Variable.objects.get(name=name)
  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 412, in get
    (self.model._meta.object_name, num)

Historique

#1

Mis à jour par Lauréline Guérin il y a environ 2 ans

  • Projet changé de Suivi des traces à Hobo

Formats disponibles : Atom PDF