-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #476 from tamuhack-org/sandeep-dev
Potentially fixed blank wave bug
- Loading branch information
Showing
29 changed files
with
1,441 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,6 +23,10 @@ class ApplicationModelForm(forms.ModelForm): | |
label='If you chose "Prefer to self-describe", please elaborate.', | ||
required=False, | ||
) | ||
major_other = forms.CharField( | ||
label='If you chose "Other", please specify your major.', | ||
required=False, | ||
) | ||
school = forms.ModelChoiceField( | ||
School.objects.all(), | ||
label="What school do you go to?", | ||
|
@@ -31,6 +35,10 @@ class ApplicationModelForm(forms.ModelForm): | |
label='If you chose "Other", please enter your school\'s name here.', | ||
required=False, | ||
) | ||
tamu_email = forms.CharField( | ||
label="TAMU Email if you are a Texas A&M student", | ||
required=False, | ||
) | ||
|
||
# Languages | ||
PYTHON = "Python" | ||
|
@@ -178,7 +186,7 @@ class ApplicationModelForm(forms.ModelForm): | |
(TENSORFLOW, "Tensorflow"), | ||
(PYTORCH, "PyTorch"), | ||
(FLUTTER, "Flutter"), | ||
(REACT_NATIVE, "React Native") | ||
(REACT_NATIVE, "React Native"), | ||
) | ||
# SKILLS | ||
technology_experience = forms.MultipleChoiceField( | ||
|
@@ -207,9 +215,9 @@ class ApplicationModelForm(forms.ModelForm): | |
(KOSHER, "Kosher"), | ||
(GLUTEN_FREE, "Gluten-Free"), | ||
(FOOD_ALLERGY, "Food Allergy"), | ||
(OTHER_DIETARY_RESTRICTION, "Other") | ||
(OTHER_DIETARY_RESTRICTION, "Other"), | ||
) | ||
|
||
dietary_restrictions = forms.MultipleChoiceField( | ||
label="Do you have any dietary restrictions?", | ||
help_text="Select all that apply", | ||
|
@@ -234,6 +242,13 @@ def __init__(self, *args, **kwargs): | |
} | ||
|
||
super().__init__(*args, **kwargs) | ||
|
||
photo_agreement = "Do you grant permission for TAMUhack to use your name, likeness, voice, and any photographs, video recordings, or audio recordings taken during the event 'TAMUhack 2025' for promotional and media purposes, including but not limited to publications, websites, social media, and press releases?" | ||
accessibilities = "Please check this box if you require any accommodations to ensure accessibility during this event. Our team will follow up to discuss your needs." | ||
|
||
self.fields["agree_to_photos"].label = mark_safe(photo_agreement) | ||
self.fields["accessibility_requirements"].label = mark_safe(accessibilities) | ||
|
||
self.fields["agree_to_coc"].label = mark_safe( | ||
'I agree to the <a href="https://static.mlh.io/docs/mlh-code-of-conduct.pdf">MLH Code of Conduct</a>' | ||
) | ||
|
@@ -247,10 +262,7 @@ def __init__(self, *args, **kwargs): | |
' and the <a href="https://mlh.io/privacy">MLH Privacy Policy</a>' | ||
) | ||
|
||
mlh_newsletter = ( | ||
"I authorize MLH to send me occasional emails about relevant events, career opportunities, and community announcements." | ||
) | ||
|
||
mlh_newsletter = "I authorize MLH to send me occasional emails about relevant events, career opportunities, and community announcements." | ||
self.fields["agree_to_mlh_stuff"].label = mark_safe(mlh_stuff) | ||
self.fields["signup_to_mlh_newsletter"].label = mark_safe(mlh_newsletter) | ||
|
||
|
@@ -287,6 +299,14 @@ def clean(self): | |
"Please fill out this field with the appropriate information." | ||
) | ||
self.add_error("race_other", msg) | ||
major = self.cleaned_data.get("major") | ||
if major: | ||
major_other = self.cleaned_data.get("major_other") | ||
if major == "Other" and not major_other: | ||
msg = forms.ValidationError( | ||
'Please fill out this field or choose "Other".' | ||
) | ||
self.add_error("major_other", msg) | ||
return self.cleaned_data | ||
|
||
class Meta: | ||
|
@@ -296,7 +316,10 @@ class Meta: | |
"agree_to_coc": forms.CheckboxInput, | ||
"agree_to_mlh_stuff": forms.CheckboxInput, | ||
"signup_to_mlh_newsletter": forms.CheckboxInput, | ||
"agree_to_photos": forms.CheckboxInput, | ||
"accessibility_requirements": forms.CheckboxInput, | ||
"travel_reimbursement": forms.CheckboxInput, | ||
"tamu_email": forms.EmailInput(attrs={"placeholder": "[email protected]"}), | ||
"extra_links": forms.TextInput( | ||
attrs={ | ||
"placeholder": "ex. GitHub, Devpost, personal website, LinkedIn, etc." | ||
|
@@ -312,7 +335,9 @@ class Meta: | |
"country", | ||
"school", | ||
"school_other", | ||
"tamu_email", | ||
"major", | ||
"major_other", | ||
"classification", | ||
"grad_year", | ||
"level_of_study", | ||
|
@@ -322,7 +347,7 @@ class Meta: | |
"race_other", | ||
"num_hackathons_attended", | ||
"technology_experience", | ||
"wares", | ||
# "wares", | ||
"dietary_restrictions", | ||
"has_team", | ||
"wants_team", | ||
|
@@ -339,6 +364,8 @@ class Meta: | |
"emergency_contact_phone", | ||
"emergency_contact_email", | ||
"notes", | ||
"agree_to_photos", | ||
"accessibility_requirements", | ||
"agree_to_coc", | ||
"agree_to_mlh_stuff", | ||
"signup_to_mlh_newsletter", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# Generated by Django 2.2.13 on 2024-06-20 15:47 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('application', '0020_auto_20231214_2259'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='application', | ||
name='major_other', | ||
field=models.CharField(blank=True, max_length=255, null=True, verbose_name='Other'), | ||
), | ||
migrations.AddField( | ||
model_name='application', | ||
name='tamu_email', | ||
field=models.EmailField(blank=True, max_length=75, null=True, verbose_name='TAMU Email if you are a Texas A&M student'), | ||
), | ||
migrations.AlterField( | ||
model_name='application', | ||
name='grad_year', | ||
field=models.IntegerField(choices=[(2024, 2024), (2025, 2025), (2026, 2026), (2027, 2027), (2028, 2028), (2029, 2029)], verbose_name='What is your anticipated graduation year?'), | ||
), | ||
migrations.AlterField( | ||
model_name='application', | ||
name='major', | ||
field=models.CharField(choices=[('Computer Science', 'Computer Science'), ('Software Engineering', 'Software Engineering'), ('Computer Engineering', 'Computer Engineering'), ('Electrical Engineering', 'Electrical Engineering'), ('Information Technology', 'Information Technology'), ('Data Science', 'Data Science'), ('major_other', 'Other')], default='NA', max_length=100, verbose_name="What's your major?"), | ||
), | ||
migrations.AlterField( | ||
model_name='application', | ||
name='shirt_size', | ||
field=models.CharField(choices=[('XXS', 'XXS'), ('XS', 'XS'), ('S', 'S'), ('M', 'M'), ('L', 'L'), ('XL', 'XL'), ('XXL', 'XXL')], max_length=4, verbose_name='What size shirt do you wear?'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.13 on 2024-06-27 21:06 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('application', '0021_auto_20240620_1047'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='application', | ||
name='major', | ||
field=models.CharField(choices=[('Computer Science', 'Computer Science'), ('Software Engineering', 'Software Engineering'), ('Computer Engineering', 'Computer Engineering'), ('Electrical Engineering', 'Electrical Engineering'), ('Information Technology', 'Information Technology'), ('Data Science', 'Data Science'), ('Other', 'Other')], default='NA', max_length=100, verbose_name="What's your major?"), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 2.2.13 on 2024-08-10 23:43 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('application', '0022_auto_20240627_1606'), | ||
] | ||
|
||
operations = [ | ||
migrations.AlterField( | ||
model_name='application', | ||
name='wants_team', | ||
field=models.CharField(choices=[('Friend', 'From a friend'), ('Tabling', 'Tabling outside Zachry'), ('Howdy Week', 'From Howdy Week'), ('Yard Sign', 'Yard sign'), ('Social Media', 'Social media'), ('Student Orgs', 'Though another student org'), ('TH Organizer', 'From a TAMUhack organizer'), ('ENGR Newsletter', 'From the TAMU Engineering Newsletter'), ('MLH', 'Major League Hacking (MLH)'), ('Attended Before', "I've attended TAMUhack before")], max_length=16, verbose_name='How did you hear about TAMUhack?'), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
# Generated by Django 2.2.13 on 2024-08-23 15:38 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('application', '0023_auto_20240810_1843'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='application', | ||
name='meal_group', | ||
field=models.CharField(blank=True, default=None, max_length=255, null=True), | ||
), | ||
migrations.AlterField( | ||
model_name='application', | ||
name='status', | ||
field=models.CharField(choices=[('P', 'Under Review'), ('R', 'Rejected'), ('A', 'Admitted'), ('C', 'Confirmed'), ('X', 'Declined'), ('I', 'Checked in'), ('E', 'Waitlisted (Expired, internally)')], default='P', max_length=1), | ||
), | ||
] |
Oops, something went wrong.