diff --git a/src/postorius/forms.py b/src/postorius/forms.py index 4c50887..6bff4c3 100644 --- a/src/postorius/forms.py +++ b/src/postorius/forms.py @@ -17,6 +17,7 @@ # Postorius. If not, see . from django import forms +from django import __version__ from django.core.validators import validate_email from django.utils.encoding import smart_text from django.utils.translation import ugettext_lazy as _ @@ -601,9 +602,15 @@ label=_('Display name'), help_text=_('Display name is the name shown in the web interface.') ) - subject_prefix = forms.CharField( - label=_('Subject prefix'), - ) + if __version__ < '1.9': + subject_prefix = forms.CharField( + label=_('Subject prefix'), + ) + else: + subject_prefix = forms.CharField( + label=_('Subject prefix'), + strip=False, + ) class ListArchiverForm(forms.Form):