29 May
2023
29 May
'23
5:45 p.m.
Thanks. Although IMHO I would prefer that the display show the actual action, and adding with a red asterisk to denote that it's the list default. It's a somewhat simple fix, although I've omitted the asterisk, because it's not important to me that it's the list default. Something like:
list.py mlist = List.objects.get_or_404(fqdn_listname=list_id) context['list_default'] = mlist.settings['default_member_action']
members.html {% if member.moderation_action|moderation_action == 'None' %} {{ list_default|moderation_action }} <<< add asterisk {% else %} {{ member.moderation_action | moderation_action }} {% endif %}