diff options
Diffstat (limited to 'ishtar_common/forms.py')
-rw-r--r-- | ishtar_common/forms.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ishtar_common/forms.py b/ishtar_common/forms.py index 74590c240..5b6501b13 100644 --- a/ishtar_common/forms.py +++ b/ishtar_common/forms.py @@ -89,7 +89,7 @@ def file_size_validator(value): limit = (settings.MAX_UPLOAD_SIZE * 1024 * 1024) - 100 if value.size > limit: raise ValidationError( - str(_(u'File too large. Size should not exceed {} Mo.')).format( + str(_('File too large. Size should not exceed {} Mo.')).format( settings.MAX_UPLOAD_SIZE ) ) @@ -448,7 +448,7 @@ class MultiSearchForm(CustomFormSearch): if not data or cls.pk_key not in data or not data[cls.pk_key]: continue pks = data[cls.pk_key] - for pk in str(pks).split(u','): + for pk in str(pks).split(','): if not pk: continue try: @@ -1000,7 +1000,7 @@ def get_form_selection( def get_data_from_formset(data): """ - convert ['formname-wizardname-1-public_domain': [u'on'], ...] to + convert ['formname-wizardname-1-public_domain': ['on'], ...] to [{'public_domain': 'off'}, {'public_domain': 'on'}] """ values = [] |