Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
walk on registration
Browse files Browse the repository at this point in the history
  • Loading branch information
omkarmoghe committed Mar 24, 2017
1 parent 31332bd commit 5ad569a
Show file tree
Hide file tree
Showing 13 changed files with 3,737 additions and 3,734 deletions.
17 changes: 10 additions & 7 deletions MHacks/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,13 +322,16 @@ def __init__(self, *args, **kwargs):
if self.user and 'umich.edu' in self.user.email:
del self.fields['transportation']

hacker_app = Application.objects.get(user=self.user)
if not hacker_app.mentoring:
for key in ['can_help', 'other_can_help']:
del self.fields[key]

if hacker_app.is_high_school:
self.fields['mlh_code_of_conduct'].subtitle = "If you are under the age of 18 you will be contacted with more liability forms that MUST be filled out and submitted before you attend the event in March."
try:
hacker_app = Application.objects.get(user=self.user)
if not hacker_app.mentoring:
for key in ['can_help', 'other_can_help']:
del self.fields[key]

if hacker_app.is_high_school:
self.fields['mlh_code_of_conduct'].subtitle = "If you are under the age of 18 you will be contacted with more liability forms that MUST be filled out and submitted before you attend the event in March."
except:
pass

class Meta:
from application_lists import TECH_OPTIONS, EMPLOYMENT_SKILLS
Expand Down
Loading

0 comments on commit 5ad569a

Please sign in to comment.