allow filtering by groups in account view

This commit is contained in:
Ross
2023-02-13 12:16:34 +00:00
parent 8a5bd44166
commit b0529839a1
3 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -45,8 +45,8 @@ class UserUserFilter(django_filters.FilterSet):
"first_name": ["contains"],
"last_name": ["contains"],
#"active": ["exact"],
#"group": ["exact"],
#"group__name": ["contains"],
"user_groups": ["exact"],
"user_groups__name": ["contains"],
#"userprofile__grade": ["exact"],
#"userprofile__supervisor": ["exact"],
"email": ["contains"],
View File
+1 -1
View File
@@ -30,7 +30,7 @@
<p><a href="{% url 'cid_selector' %}">CID users can log in here</a></p>
<div>
{% if request.user.is_staff %}
Manage users <a href="{% url 'generic:manage_cids'%}">here</a>
Manage users <a href="{% url 'accounts_list'%}">here</a> and candidates <a href="{% url 'generic:manage_cids'%}">here</a>
{% endif %}
</div>
{% endblock %}