From 8857a78325e233a245a7e3275bb2d6dcd345c4a2 Mon Sep 17 00:00:00 2001 From: jessiebelle Date: Sun, 24 Dec 2023 20:41:09 +0200 Subject: [PATCH] allow png upload --- sponsors/forms.py | 4 ++-- sponsors/models/sponsors.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/sponsors/forms.py b/sponsors/forms.py index ed59a6fbf..5a31605af 100644 --- a/sponsors/forms.py +++ b/sponsors/forms.py @@ -230,7 +230,7 @@ class SponsorshipApplicationForm(forms.Form): label="Sponsor print logo", help_text="For printed materials, signage, and projection. SVG or EPS", required=False, - validators=[FileExtensionValidator(['eps', 'epsf' 'epsi', 'svg'])], + validators=[FileExtensionValidator(['eps', 'epsf' 'epsi', 'svg', 'png'])], ) primary_phone = forms.CharField( @@ -563,7 +563,7 @@ class SponsorUpdateForm(forms.ModelForm): widget=forms.widgets.FileInput, help_text="For printed materials, signage, and projection. SVG or EPS", required=False, - validators=[FileExtensionValidator(['eps', 'epsf' 'epsi', 'svg'])], + validators=[FileExtensionValidator(['eps', 'epsf' 'epsi', 'svg', 'png'])], ) def __init__(self, *args, **kwargs): diff --git a/sponsors/models/sponsors.py b/sponsors/models/sponsors.py index 8332934c3..eee7f585e 100644 --- a/sponsors/models/sponsors.py +++ b/sponsors/models/sponsors.py @@ -52,7 +52,7 @@ class Sponsor(ContentManageable): ) print_logo = models.FileField( upload_to="sponsor_print_logos", - validators=[FileExtensionValidator(['eps', 'epsf' 'epsi', 'svg'])], + validators=[FileExtensionValidator(['eps', 'epsf' 'epsi', 'svg', 'png'])], blank=True, null=True, verbose_name="Print logo",