@@ -79,10 +79,12 @@ def clean_projects(self):
79
79
)
80
80
return data
81
81
82
- def clean_site (self ):
83
- data = self .cleaned_data ["site" ]
84
- validate_url (data , "website" )
85
- return data
82
+ # def clean_site(self,):
83
+ # data = self.cleaned_data["site"]
84
+
85
+ # if not URLValidator(data):
86
+ # raise forms.ValidationError("Please enter a valid website url")
87
+ # return data
86
88
87
89
first_timer = common_first_timer ()
88
90
@@ -97,7 +99,6 @@ def clean_site(self):
97
99
),
98
100
)
99
101
100
-
101
102
cvs_edition = forms .BooleanField (
102
103
required = False ,
103
104
label = 'I authorize "Hackers at UPC" to share my CV with HackUPC 2023 Sponsors.' ,
@@ -134,8 +135,6 @@ def clean_cvs_edition(self):
134
135
cc = self .cleaned_data .get ("cvs_edition" , False )
135
136
return cc
136
137
137
-
138
-
139
138
def clean_reimb_amount (self ):
140
139
data = self .cleaned_data ["reimb_amount" ]
141
140
reimb = self .cleaned_data .get ("reimb" , False )
@@ -187,7 +186,6 @@ def get_bootstrap_field_info(self):
187
186
r_enabled = getattr (settings , "REIMBURSEMENT_ENABLED" , False )
188
187
personal_info_fields .append ({"name" : "origin" , "space" : 12 })
189
188
190
-
191
189
# Fields that we only need the first time the hacker fills the application
192
190
# https://stackoverflow.com/questions/9704067/test-if-django-modelform-has-instance
193
191
if not self .instance .pk :
@@ -257,5 +255,5 @@ class Meta(_BaseApplicationForm.Meta):
257
255
"origin" : "Where are you joining us from?" ,
258
256
"description" : "Why are you excited about %s?" % settings .HACKATHON_NAME ,
259
257
"projects" : "What projects have you worked on?" ,
260
- "resume" : "Upload your resume"
258
+ "resume" : "Upload your resume" ,
261
259
}
0 commit comments