Simplify image dimension upload error string
authorDaniel Gustafsson <daniel@yesql.se>
Wed, 13 Jun 2018 17:29:47 +0000 (19:29 +0200)
committerDaniel Gustafsson <daniel@yesql.se>
Wed, 13 Jun 2018 17:29:47 +0000 (19:29 +0200)
As evidenced by support emails, the error message wasn't terribly
clear. Remove the part which likely caused the confusion to make
it simpler.

postgresqleu/confsponsor/benefitclasses/imageupload.py

index 798d8c25f0f2d181eec6e17f034836d3859d071d..81cdb81e691f1a56c78eb26525680ac90899647d 100644 (file)
@@ -71,7 +71,7 @@ class ImageUploadForm(forms.Form):
                # One of the sizes has to be exactly what the spec says, otherwise we might have an image that's
                # too small.
                if image.size[0] != xres and image.size[1] != yres:
-                       raise ValidationError("Image must be %s pixels wide or %s pixels high, fitting within a box of %s. Uploaded image is %s." % (xres, yres, resstr, upresstr))
+                       raise ValidationError("Image must be %s pixels wide or %s pixels high. Uploaded image is %s." % (xres, yres, upresstr))
 
                if int(self.params.get('transparent', 0)) == 1:
                        # Require transparency, only supported for PNG