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"],
|
"first_name": ["contains"],
|
||||||
"last_name": ["contains"],
|
"last_name": ["contains"],
|
||||||
#"active": ["exact"],
|
#"active": ["exact"],
|
||||||
#"group": ["exact"],
|
"user_groups": ["exact"],
|
||||||
#"group__name": ["contains"],
|
"user_groups__name": ["contains"],
|
||||||
#"userprofile__grade": ["exact"],
|
#"userprofile__grade": ["exact"],
|
||||||
#"userprofile__supervisor": ["exact"],
|
#"userprofile__supervisor": ["exact"],
|
||||||
"email": ["contains"],
|
"email": ["contains"],
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
<p><a href="{% url 'cid_selector' %}">CID users can log in here</a></p>
|
<p><a href="{% url 'cid_selector' %}">CID users can log in here</a></p>
|
||||||
<div>
|
<div>
|
||||||
{% if request.user.is_staff %}
|
{% 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 %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|||||||
Reference in New Issue
Block a user