django2.2: forms fixs for new API

This commit is contained in:
2019-10-06 16:50:55 +02:00
parent d7075eb762
commit 81fcf411c1
2 changed files with 3 additions and 16 deletions

View File

@ -66,7 +66,7 @@ class MailingForm(forms.Form):
super(MailingForm, self).__init__(*args, **kwargs)
self.fields["action"] = forms.TypedChoiceField(
(
choices=(
(self.ACTION_NEW_MAILING, _("New Mailing")),
(self.ACTION_NEW_SUBSCRIPTION, _("Subscribe")),
(self.ACTION_REMOVE_SUBSCRIPTION, _("Remove")),