Project

General

Profile

Bug #62234

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

Added by Sentry Io 11 months ago. Updated 11 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
28 February 2022
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

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)

History

#1

Updated by Lauréline Guérin 11 months ago

  • Project changed from Suivi des traces to Hobo

Also available in: Atom PDF