From 60a80e0bc33798a36e1a29253c8123f1d19bd2a5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Fri, 12 Feb 2021 17:53:44 +0100 Subject: Refactoring - typo --- ishtar_common/forms.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ishtar_common/forms.py') 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 = [] -- cgit v1.2.3