diff options
author | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-12 17:53:44 +0100 |
---|---|---|
committer | Étienne Loks <etienne.loks@iggdrasil.net> | 2021-02-28 12:15:24 +0100 |
commit | 60a80e0bc33798a36e1a29253c8123f1d19bd2a5 (patch) | |
tree | 9bf31ced127fc7389d9ba6f9d55279fd21debcfb /ishtar_common/forms.py | |
parent | 0d860bb0211ce14bbb86ffe7411ec2853852b64d (diff) | |
download | Ishtar-60a80e0bc33798a36e1a29253c8123f1d19bd2a5.tar.bz2 Ishtar-60a80e0bc33798a36e1a29253c8123f1d19bd2a5.zip |
Refactoring - typo
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 = [] |