@@ -229,6 +229,11 @@ class SponsorshipApplicationForm(forms.Form):
229229 help_text = "For display on our sponsor webpage. High resolution PNG or JPG, smallest dimension no less than 256px" ,
230230 required = False ,
231231 )
232+ white_logo = forms .ImageField (
233+ label = "Sponsor white logo" ,
234+ help_text = "For display on dark backgrounds (e.g. PyPI footer). Transparent PNG, smallest dimension no less than 256px" ,
235+ required = False ,
236+ )
232237 print_logo = forms .FileField (
233238 label = "Sponsor print logo" ,
234239 help_text = "For printed materials, signage, and projection. SVG or EPS" ,
@@ -396,6 +401,7 @@ def save(self):
396401 landing_page_url = self .cleaned_data .get ("landing_page_url" , "" ),
397402 twitter_handle = self .cleaned_data ["twitter_handle" ],
398403 linked_in_page_url = self .cleaned_data ["linked_in_page_url" ],
404+ white_logo = self .cleaned_data .get ("white_logo" ),
399405 print_logo = self .cleaned_data .get ("print_logo" ),
400406 country_of_incorporation = self .cleaned_data .get ("country_of_incorporation" , "" ),
401407 state_of_incorporation = self .cleaned_data .get ("state_of_incorporation" , "" ),
@@ -606,6 +612,11 @@ class SponsorUpdateForm(forms.ModelForm):
606612 help_text = "For display on our sponsor webpage. High resolution PNG or JPG, smallest dimension no less than 256px" ,
607613 required = False ,
608614 )
615+ white_logo = forms .ImageField (
616+ widget = forms .widgets .FileInput ,
617+ help_text = "For display on dark backgrounds (e.g. PyPI footer). Transparent PNG, smallest dimension no less than 256px" ,
618+ required = False ,
619+ )
609620 print_logo = forms .FileField (
610621 widget = forms .widgets .FileInput ,
611622 help_text = "For printed materials, signage, and projection. SVG or EPS" ,
@@ -647,6 +658,7 @@ class Meta:
647658 "twitter_handle" ,
648659 "linked_in_page_url" ,
649660 "web_logo" ,
661+ "white_logo" ,
650662 "print_logo" ,
651663 "primary_phone" ,
652664 "mailing_address_line_1" ,
0 commit comments