Skip to content

Commit

Permalink
allow png upload
Browse files Browse the repository at this point in the history
  • Loading branch information
jessiebelle committed Dec 24, 2023
1 parent 3c59256 commit 8857a78
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions sponsors/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion sponsors/models/sponsors.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 8857a78

Please sign in to comment.