Alan So writes:
However, some of our departmental staff sometimes forget to check the box "Pre Verified" when they refresh (actually delete all and subscribe all) list of members during term's start. [...] Is this possible to add default setting of Pre Verified during mass-subscription (for example settings.py) such that we can help them a bit?
I don't know if there's a way to do this in settings.py, but I suspect not. Maybe Mark knows a way.
However, you can find .../site-packages/postorius/forms/list_forms.py (not sure exactly where that is in your instance but I guess you probably do), and find this code (AFAICT this is the unique instance of 'Pre Verified' in the whole Postorius code base) in that file:
pre_verified = forms.BooleanField(
label=_('Pre Verified'),
initial=False,
required=False,
help_text=_(
'If checked, users will not have to verify that their '
'email address is valid.'),
widget=forms.CheckboxInput()
)
Then just edit the line
initial=False,
to
initial=True,
Note that this will get overwritten if you upgrade (or reinstall) Postorius, and you'll have to do it again. But it will save you a ton of grief until that happens.
Also note that if there *is* a way to do this in settings.py, it is *safe* to do that later without reverting the change to list_forms.py, and the settings.py setting will continue to work after any upgrade or reinstall. So you can patch list_forms.py now without worrying it will get you into trouble later.
Steve