I would like to change admin for a group, so it would display how many users are there in a certain group. I’d like to display this in the view showing all groups, the one before you enter admin for certain group. Is it possible? I am talking both about how to change admin for a group and how to add function to list_display.
I would like to change admin for a group, so it would display how
Share
First you’d need to import and subclass
GroupAdminfromdjango.contrib.auth.admin. In your subclass, define auser_countmethod. Then, unregister the existing Group model from the admin, and re-register the new one.