@@ -11,6 +11,7 @@ class HackerApplicationForm(_BaseApplicationForm):
11
11
{"name" : "graduation_year" , "space" : 12 },
12
12
{"name" : "gender" , "space" : 12 },
13
13
{"name" : "other_gender" , "space" : 12 },
14
+ {"name" : "phone_number" , "space" : 12 },
14
15
{"name" : "tshirt_size" , "space" : 12 },
15
16
{"name" : "under_age" , "space" : 12 },
16
17
{"name" : "lennyface" , "space" : 12 },
@@ -78,6 +79,7 @@ def clean_projects(self):
78
79
)
79
80
return data
80
81
82
+
81
83
first_timer = common_first_timer ()
82
84
83
85
university = common_university ()
@@ -127,20 +129,6 @@ def clean_cvs_edition(self):
127
129
cc = self .cleaned_data .get ("cvs_edition" , False )
128
130
return cc
129
131
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
-
144
132
def clean_reimb_amount (self ):
145
133
data = self .cleaned_data ["reimb_amount" ]
146
134
reimb = self .cleaned_data .get ("reimb" , False )
@@ -174,9 +162,9 @@ def get_bootstrap_field_info(self):
174
162
if not hybrid :
175
163
self .fields ["online" ].widget = forms .HiddenInput ()
176
164
polices_fields = [
177
- {"name" : "terms_and_conditions" , "space" : 12 },
178
165
{"name" : "cvs_edition" , "space" : 12 },
179
166
{"name" : "email_subscribe" , "space" : 12 },
167
+ {"name" : "terms_and_conditions" , "space" : 12 },
180
168
]
181
169
if not discord :
182
170
personal_info_fields .extend (
@@ -227,7 +215,7 @@ class Meta(_BaseApplicationForm.Meta):
227
215
"resume" : "Accepted file formats: %s"
228
216
% (", " .join (extensions ) if extensions else "Any" ),
229
217
"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>" ,
231
219
}
232
220
233
221
class CustomSelect (forms .Select ):
@@ -272,7 +260,8 @@ def clean_discover(self):
272
260
"graduation_year" : "What year are you expecting to graduate?" ,
273
261
"tshirt_size" : "What's your t-shirt size?" ,
274
262
"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?' ,
276
265
"discover" : "How did you hear about us?" ,
277
266
"origin" : "Where are you joining us from?" ,
278
267
"description" : "Why are you excited about %s?" % settings .HACKATHON_NAME ,
0 commit comments