From b2bb0e1cc95d5e0551e807dfbcf7f91c22a62840 Mon Sep 17 00:00:00 2001 From: yleclanche Date: Thu, 19 Sep 2019 11:22:02 +0200 Subject: [PATCH] Change accepted ratio --- teleforma/forms.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/teleforma/forms.py b/teleforma/forms.py index f7f06072..05eb516d 100644 --- a/teleforma/forms.py +++ b/teleforma/forms.py @@ -102,7 +102,7 @@ class UserForm(ModelForm): return image width, height = get_image_dimensions(image) ratio = float(height) / float(width) - if ratio > 1.5 or ratio < 1: + if ratio > 2.5 or ratio < 1: raise ValidationError({'portrait': "L'image n'est pas au format portrait."}) NEW_HEIGHT = 256 NEW_WIDTH = 200 -- 2.39.5