Project

General

Profile

Bug #46584

paramétrage de global_title via /themes/options vs variable global_title posée sur un service spécifique

Added by Frédéric Péters 5 months ago.

Status:
Nouveau
Priority:
Normal
Assignee:
-
Category:
-
Target version:
-
Start date:
11 Sep 2020
Due date:
% Done:

0%

Estimated time:
Patch proposed:
No
Planning:
No

Description

Genre un global_title différent pour l'authentic mutualisé.

File "/usr/lib/python3/dist-packages/django/views/generic/base.py" in get
  155.         context = self.get_context_data(**kwargs)

File "/usr/lib/python3/dist-packages/hobo/environment/forms.py" in get_context_data
  194.             initial_data[variable_name] = get_variable(variable_name).value

File "/usr/lib/python3/dist-packages/hobo/environment/utils.py" in get_variable
  96.         variable = Variable.objects.get(name=name)

File "/usr/lib/python3/dist-packages/django/db/models/manager.py" in manager_method
  85.                 return getattr(self.get_queryset(), name)(*args, **kwargs)

File "/usr/lib/python3/dist-packages/django/db/models/query.py" in get
  384.             (self.model._meta.object_name, num)

Exception Type: MultipleObjectsReturned at /theme/options
Exception Value: get() returned more than one Variable -- it returned 2!

Also available in: Atom PDF