diff --git a/templates/users/detail.html b/templates/users/detail.html index 8ab373b..cb3da52 100644 --- a/templates/users/detail.html +++ b/templates/users/detail.html @@ -39,10 +39,9 @@
Role
- {% for r, label in roles_label.items %}{% if r == role %}{{ label }}{% endif %}{% endfor %} + {{ role.name|default:"Unassigned" }}
diff --git a/templates/users/form.html b/templates/users/form.html index 13915a6..fac1354 100644 --- a/templates/users/form.html +++ b/templates/users/form.html @@ -96,8 +96,8 @@ {% if can_change_role %} {% else %} diff --git a/templates/users/list.html b/templates/users/list.html index 32a1517..82393cc 100644 --- a/templates/users/list.html +++ b/templates/users/list.html @@ -17,7 +17,7 @@{{ page_obj.paginator.count }} active users