@@ -11,6 +11,7 @@ class HackerApplicationForm(_BaseApplicationForm):
1111 {"name" : "graduation_year" , "space" : 12 },
1212 {"name" : "gender" , "space" : 12 },
1313 {"name" : "other_gender" , "space" : 12 },
14+ {"name" : "phone_number" , "space" : 12 },
1415 {"name" : "tshirt_size" , "space" : 12 },
1516 {"name" : "under_age" , "space" : 12 },
1617 {"name" : "lennyface" , "space" : 12 },
@@ -78,6 +79,7 @@ def clean_projects(self):
7879 )
7980 return data
8081
82+
8183 first_timer = common_first_timer ()
8284
8385 university = common_university ()
@@ -127,20 +129,6 @@ def clean_cvs_edition(self):
127129 cc = self .cleaned_data .get ("cvs_edition" , False )
128130 return cc
129131
130- def clean_resume (self ):
131- resume = self .cleaned_data ["resume" ]
132- size = getattr (resume , "_size" , 0 )
133- if size > settings .MAX_UPLOAD_SIZE :
134- raise forms .ValidationError (
135- "Please keep resume size under %s. Current filesize %s!"
136- % (filesizeformat (settings .MAX_UPLOAD_SIZE ), filesizeformat (size ))
137- )
138- if not resume and not self .instance .pk :
139- raise forms .ValidationError (
140- "In order to apply and attend you have to provide a resume."
141- )
142- return resume
143-
144132 def clean_reimb_amount (self ):
145133 data = self .cleaned_data ["reimb_amount" ]
146134 reimb = self .cleaned_data .get ("reimb" , False )
@@ -174,9 +162,9 @@ def get_bootstrap_field_info(self):
174162 if not hybrid :
175163 self .fields ["online" ].widget = forms .HiddenInput ()
176164 polices_fields = [
177- {"name" : "terms_and_conditions" , "space" : 12 },
178165 {"name" : "cvs_edition" , "space" : 12 },
179166 {"name" : "email_subscribe" , "space" : 12 },
167+ {"name" : "terms_and_conditions" , "space" : 12 },
180168 ]
181169 if not discord :
182170 personal_info_fields .extend (
@@ -227,7 +215,7 @@ class Meta(_BaseApplicationForm.Meta):
227215 "resume" : "Accepted file formats: %s"
228216 % (", " .join (extensions ) if extensions else "Any" ),
229217 "origin" : "If you don’t see your city, choose the closest one! "
230- "Plase type following this schema: <strong>city, province, country</strong>" ,
218+ "Please type following this schema: <strong>city, province, country</strong>" ,
231219 }
232220
233221 class CustomSelect (forms .Select ):
@@ -272,7 +260,8 @@ def clean_discover(self):
272260 "graduation_year" : "What year are you expecting to graduate?" ,
273261 "tshirt_size" : "What's your t-shirt size?" ,
274262 "diet" : "Dietary requirements" ,
275- "lennyface" : 'Describe yourself with a "lenny face":' ,
263+ "phone_number" : "Phone number (Optional)" ,
264+ "lennyface" : 'Which "lenny face" represents you better?' ,
276265 "discover" : "How did you hear about us?" ,
277266 "origin" : "Where are you joining us from?" ,
278267 "description" : "Why are you excited about %s?" % settings .HACKATHON_NAME ,
0 commit comments