parent
e4bd2abee2
commit
2d69e777a7
|
@ -25,7 +25,7 @@ class AnnounceForm(forms.ModelForm):
|
|||
|
||||
def clean_transport_channel(self):
|
||||
channels = self.cleaned_data['transport_channel']
|
||||
limit = 130
|
||||
limit = 160
|
||||
if 'sms' in channels and \
|
||||
len(self.cleaned_data['text']) > limit:
|
||||
raise forms.ValidationError(_('Announce content exceeds %s chars'
|
||||
|
|
Reference in New Issue