Skip to content

Commit

Permalink
Set nicer label for previewbackground field in admin editor
Browse files Browse the repository at this point in the history
  • Loading branch information
mhagander committed Sep 19, 2024
1 parent 31dae3e commit 91cddf4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion postgresqleu/confsponsor/benefitclasses/imageupload.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ class ImageUploadBackendForm(BackendSponsorshipLevelBenefitForm):
xres = forms.IntegerField(label="X resolution")
yres = forms.IntegerField(label="Y resolution")
transparent = IntegerBooleanField(label="Require transparent", required=False)
previewbackground = forms.CharField(max_length=20, required=False, validators=[color_validator, ], help_text="Background color used in preview")
previewbackground = forms.CharField(max_length=20, required=False,
label='Preview background',
validators=[color_validator, ],
help_text="Background color used in preview",
)

class_param_fields = ['format', 'xres', 'yres', 'transparent', 'previewbackground']

Expand Down

0 comments on commit 91cddf4

Please sign in to comment.