[damned-lies] Add custom admin template to see group members on admin change form



commit d1a0baef239b497b0be7bf6c2a30468a556763b6
Author: Claude Paroz <claude 2xlibre net>
Date:   Wed Feb 5 08:49:38 2020 +0100

    Add custom admin template to see group members on admin change form

 templates/admin/auth/group/change_form.html | 5 +++++
 1 file changed, 5 insertions(+)
---
diff --git a/templates/admin/auth/group/change_form.html b/templates/admin/auth/group/change_form.html
new file mode 100644
index 00000000..3fc84612
--- /dev/null
+++ b/templates/admin/auth/group/change_form.html
@@ -0,0 +1,5 @@
+{% extends "admin/change_form.html" %}
+
+{% block after_field_sets %}
+    Members: {% for u in original.user_set.all %}{{ u.get_full_name|default:u }} ({{ u.username }}), {% 
endfor %}
+{% endblock %}


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]