@@ -120,13 +120,13 @@ class Meta:
120120 label = _ ("Width" ),
121121 required = False ,
122122 min_value = 1 ,
123- help_text = _ (" The image width as number in pixels. " ' Example: "720" and not "720px".' ),
123+ help_text = _ (' The image width as number in pixels. Example: "720" and not "720px".' ),
124124 )
125125 height = forms .IntegerField (
126126 label = _ ("Height" ),
127127 required = False ,
128128 min_value = 1 ,
129- help_text = _ (" The image height as number in pixels. " ' Example: "720" and not "720px".' ),
129+ help_text = _ (' The image height as number in pixels. Example: "720" and not "720px".' ),
130130 )
131131 alignment = forms .ChoiceField (
132132 label = _ ("Alignment" ),
@@ -210,9 +210,7 @@ def clean(self):
210210 data = self .cleaned_data
211211 # you shall only set one image kind
212212 if not data .get ("picture" , False ) and not data .get ("external_picture" , False ):
213- raise forms .ValidationError (
214- _ ("You need to add either an image, " "or a URL linking to an external image." )
215- )
213+ raise forms .ValidationError (_ ("You need to add either an image, or a URL linking to an external image." ))
216214
217215 # certain cropping options do not work together, the following
218216 # list defines the disallowed options used in the ``clean`` method
@@ -234,7 +232,7 @@ def clean(self):
234232 break
235233
236234 if invalid_option_pair :
237- message = _ (" Invalid cropping settings. " ' You cannot combine "{field_a}" with "{field_b}".' )
235+ message = _ (' Invalid cropping settings. You cannot combine "{field_a}" with "{field_b}".' )
238236 message = message .format (
239237 field_a = self .fields [invalid_option_pair [0 ]].label ,
240238 field_b = self .fields [invalid_option_pair [0 ]].label ,
0 commit comments