Commit 270cb09
committed
fix(user): drop stale select_related("global_role") in /user list view
Global_Role.user uses related_name="+" under legacy authorization
(dojo/authorization/models.py:52), so Dojo_User has no `global_role`
reverse accessor. The list view's select_related call was raising
FieldError and 500'ing /user. Drop the arg — the template's
{% if u.global_role.role %} silently evaluates falsy when the accessor
is missing, so the Global Role column simply renders blank, matching
the rest of the inert RBAC surface under legacy.1 parent 88b8939 commit 270cb09
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
0 commit comments