Project

General

Profile

Development #49893

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

Added by sentry io 21 days ago. Updated 14 days ago.

Status:
Solution déployée
Priority:
Normal
Category:
-
Target version:
-
Start date:
05 Jan 2021
Due date:
% Done:

0%

Estimated time:
Patch proposed:
Yes
Planning:
No

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]

Files

Associated revisions

Revision 09c68bdd (diff)
Added by Valentin Deniaud 14 days ago

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

History

#1

Updated by Frédéric Péters 21 days ago

  • Subject changed from IndexError: list index out of range to /manage/users/add/choose-ou/ : IndexError: list index out of range
  • Project changed from Suivi des traces to Authentic 2
#2

Updated by Valentin Deniaud 21 days ago

  • Assignee set to Valentin Deniaud
#3

Updated by Valentin Deniaud 21 days ago

#4

Updated by Benjamin Dauvergne 14 days ago

  • Status changed from Solution proposée to Solution validée
#5

Updated by Valentin Deniaud 14 days ago

  • Status changed from Solution validée to 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

Updated by Frédéric Péters 14 days ago

  • Status changed from Résolu (à déployer) to Solution déployée

Also available in: Atom PDF