allow filtering by groups in account view
This commit is contained in:
+2
-2
@@ -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"],
|
||||
|
||||
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user