Projet

Général

Profil

Development #49893

/manage/users/add/choose-ou/ : IndexError: list index out of range

Ajouté par Sentry Io il y a plus de 3 ans. Mis à jour il y a plus de 3 ans.

Statut:
Fermé
Priorité:
Normal
Assigné à:
Catégorie:
-
Version cible:
-
Début:
05 janvier 2021
Echéance:
% réalisé:

0%

Temps estimé:
Patch proposed:
Oui
Planning:
Non

Description

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

IndexError: list index out of range
(9 additional frame(s) were not displayed)
...
  File "authentic2/manager/views.py", line 287, in get_context_data
    ctx = super(TitleMixin, self).get_context_data(**kwargs)
  File "django/views/generic/edit.py", line 93, in get_context_data
    kwargs['form'] = self.get_form()
  File "django/views/generic/edit.py", line 45, in get_form
    return form_class(**self.get_form_kwargs())
  File "authentic2/manager/forms.py", line 483, in __init__
    data[ou_key] = str(self.ou_qs[0].pk)
  File "django/db/models/query.py", line 272, in __getitem__
    return self._result_cache[k]

Fichiers

Révisions associées

Révision 09c68bdd (diff)
Ajouté par Valentin Deniaud il y a plus de 3 ans

manager: check permissions before showing add user button (#49893)

Historique

#1

Mis à jour par Frédéric Péters il y a plus de 3 ans

  • Projet changé de Suivi des traces à Authentic 2
  • Sujet changé de IndexError: list index out of range à /manage/users/add/choose-ou/ : IndexError: list index out of range
#2

Mis à jour par Valentin Deniaud il y a plus de 3 ans

  • Assigné à mis à Valentin Deniaud
#3

Mis à jour par Valentin Deniaud il y a plus de 3 ans

#4

Mis à jour par Benjamin Dauvergne il y a plus de 3 ans

  • Statut changé de Solution proposée à Solution validée
#5

Mis à jour par Valentin Deniaud il y a plus de 3 ans

  • Statut changé de Solution validée à Résolu (à déployer)
commit 1523e30529d1e6882d0a66eabe3d807519bb63f1
Author: Valentin Deniaud <vdeniaud@entrouvert.com>
Date:   Wed Jan 6 09:40:35 2021 +0100

    manager: check permissions before showing add user button (#49893)
#6

Mis à jour par Frédéric Péters il y a plus de 3 ans

  • Statut changé de Résolu (à déployer) à Solution déployée

Formats disponibles : Atom PDF