Révision 2d69e777
Ajouté par Serghei Mihai il y a plus de 9 ans
corbo/forms.py | ||
---|---|---|
25 | 25 |
|
26 | 26 |
def clean_transport_channel(self): |
27 | 27 |
channels = self.cleaned_data['transport_channel'] |
28 |
limit = 130
|
|
28 |
limit = 160
|
|
29 | 29 |
if 'sms' in channels and \ |
30 | 30 |
len(self.cleaned_data['text']) > limit: |
31 | 31 |
raise forms.ValidationError(_('Announce content exceeds %s chars' |
Formats disponibles : Unified diff
SMS length set to 160 chars
Closes #6369