Subscribe form - Name required only for specific lists
Nov. 28, 2026
10:16 p.m.
The server has multiple lists on it. For just 2 of the lists I'm attempting to make the Name a required field when subscribing.
/opt/mailman/venv/lib/python3.11/site-packages/postorius/forms/list_forms.py
LINE 215
display_name = forms.CharField(
label=_('Your name (optional)'), required=False
)
===================================================
In psuedo code, I'm thinking something like so:
IF LIST_ID = 'MYLISTNAME.MYDOMAIN.COM' {
display_name = forms.CharField(
label=_('Your name'), required=True
)
} ELSEIF LIST_ID = 'OTHERLISTNAME.OTHERDOMAIN.COM' {
display_name = forms.CharField(
label=_('Your name'), required=True
)
} ELSE {
display_name = forms.CharField(
label=_('Your name (optional)'), required=False
)
}
Could anyone help me out with the right Python code.
1
Age (days ago)
1
Last active (days ago)
0 comments
1 participants
participants (1)
-
iMark