Incoming Student Models

class fyt.incoming.models.IncomingStudent(*args, **kwargs)[source]

Model to aggregate trippee information.

All logistical information is stored on this model since it is possible for a student to go on a trip without submitting a registration, but a student won’t go on a trip unless we have received information from the college about her.

Parameters:
  • id (AutoField) – Id
  • trips_year_id (ForeignKey) – Trips year
  • registration_id (OneToOneField) – Registration
  • trip_assignment_id (ForeignKey) – Trip assignment
  • cancelled (BooleanField) – this Trippee will still be charged even though they are no longer going on a trip
  • bus_assignment_round_trip_id (ForeignKey) – Bus assignment (round-trip)
  • bus_assignment_to_hanover_id (ForeignKey) – Bus assignment to hanover (one-way)
  • bus_assignment_from_hanover_id (ForeignKey) – Bus assignment from hanover (one-way)
  • financial_aid (PositiveSmallIntegerField) – Percentage financial assistance
  • med_info (TextField) – Use this field for additional medical info not provided in the registration, or simplified information if some details do not need to be provided to leaders and croos.
  • show_med_info (BooleanField) – Medical information in this trippee’s registration will be displayed in leader and croo packets. (This information is hidden by default.)
  • decline_reason (CharField) – Decline reason
  • notes (TextField) – These notes are displayed to the trippee along with their trip assignment.
  • name (CharField) – Name
  • netid (NetIdField) – Netid
  • class_year (CharField) – Class year
  • ethnic_code (CharField) – Ethnic code
  • gender (CharField) – Gender
  • birthday (CharField) – Birthday
  • incoming_status (CharField) – Incoming status
  • email (EmailField) – Email
  • blitz (EmailField) – Blitz
  • phone (CharField) – Phone
  • address (TextField) – Address
bus_cost()[source]

Compute the cost of buses for this student.

There is either a round-trip bus or one-way buses, never both.

compute_cost()[source]

Compute the total charge for this student.

Cost is the sum of the base cost, bus cost and doc membership, adjusted by financial aid, plus any green fund donation.

get_gender()[source]

If there is a registration, pull gender from there. Otherwise use the incoming student data.

get_hometown()[source]

Parse the town, state, and nation from self.address.

get_registration()[source]

Return this student’s registration, or None if DNE

lastname

Parse last name from self.name

class fyt.incoming.models.Registration(*args, **kwargs)[source]

Registration information for an incoming student.

Parameters:
  • id (AutoField) – Id
  • trips_year_id (ForeignKey) – Trips year
  • user_id (ForeignKey) – User
  • name (CharField) – Name
  • gender (CharField) – Gender
  • previous_school (CharField) – High school, or most recent school
  • phone (CharField) – Phone number
  • email (EmailField) – Email address
  • guardian_email (EmailField) – Parent/guardian email
  • is_exchange (CharField) – Are you an exchange student?
  • is_transfer (CharField) – Are you a transfer student?
  • is_international (CharField) – Are you an international student who plans on attending the international student orientation?
  • is_native (CharField) – Are you a native american student who plans on attending the native american student orientation?
  • is_fysep (CharField) – Are you participating in the first year student enrichment program (fysep)?
  • is_athlete (CharField) – Each team has its own pre-season schedule. We are in close contact with fall coaches and will assign you to a trip section that works well for the team’s pre-season schedule.
  • firstchoice_triptype_id (ForeignKey) – First choice trip types
  • schedule_conflicts (TextField) – Schedule conflicts
  • tshirt_size (CharField) – Tshirt size
  • medical_conditions (TextField) – Do you have any medical conditions, past injuries, disabilities or allergies that we should be aware of? please describe any injury, condition, disability, or illness which we should take into consideration in assigning you to a trip
  • allergies (TextField) – Please describe any allergies you have (e.g. bee stings, specific medications, foods, etc.) which might require special medical attention.
  • allergen_information (TextField) – What happens if you come into contact with this allergen (e.g. i get hives, i go into anaphylactic shock)?
  • epipen (CharField) – Do you carry an epipen? if yes, please bring it with you on trips.
  • needs (TextField) – While many students manage their own health needs, we would prefer that you let us know of any other needs or conditions so we can ensure your safety and comfort during the trip (e.g. diabetes, recent surgery, migraines).
  • dietary_restrictions (TextField) – Do you have any dietary restrictions we should be aware of (vegetarian, gluten-free, etc.)? we can accommodate any and all dietary needs as long as we know in advance. leave blank if not applicable
  • allergy_severity (PositiveIntegerField) – If you have a food allergy, please rate the severity of the allergy on a scale from 1 to 5 (1 = itchy skin, puffy eyes and 5 = anaphylaxis).
  • allergy_reaction (TextField) – If you have a food allergy, please describe what happens when you come into contact with the allergen (e.g. i get hives, i go into anaphylactic shock).
  • regular_exercise (CharField) – Do you do enjoy cardiovascular exercise (running, biking, swimming, sports, etc.) on a regular basis?
  • physical_activities (TextField) – Please describe the types of physical activities you enjoy, including frequency (daily? weekly?) and extent (number of miles or hours)
  • other_activities (TextField) – Do you do any other activities that might assist us in assigning you to a trip (yoga, karate, horseback riding, photography, fishing, etc.)?
  • swimming_ability (CharField) – Please rate yourself as a swimmer
  • camping_experience (CharField) – Have you ever spent a night camping under a tarp?
  • hiking_experience (CharField) – Have you ever hiked or climbed with a pack of at least 20-30 pounds (10-15 kilograms)?
  • hiking_experience_description (TextField) – Please describe your hiking experience. where have you hiked? was it mountainous or flat? have you done day hikes? have you hiked while carrying food and shelter with you? please be specific: we want to physically challenge you as little or as much as you want. be honest so that we can place you on the right trip for you. if you have questions about this, please let us know.
  • has_boating_experience (CharField) – Have you ever been on an overnight or extended canoe or kayak trip?
  • boating_experience (TextField) – Please describe your canoe or kayak trip experience. have you paddled on flat water? have you paddled on flat water? when did you do these trips and how long were they?
  • other_boating_experience (TextField) – Please describe any other paddling experience you have had. be specific regarding location, type of water, and distance covered.
  • fishing_experience (TextField) – Please describe your fishing experience.
  • horseback_riding_experience (TextField) – Please describe your riding experience and ability level. what riding styles are you familiar with? how recently have you ridden horses on a regular basis? note: prior exposure and some experience is preferred for this trip.
  • mountain_biking_experience (TextField) – Please describe your biking experience and ability level. have you done any biking off of paved trails? how comfortable are you riding on dirt and rocks?
  • sailing_experience (TextField) – Please describe your sailing experience.
  • anything_else (TextField) – Is there any other information you’d like to provide (anything helps!) that would assist us in assigning you to a trip?
  • bus_stop_round_trip_id (ForeignKey) – Where would you like to be bussed from/to?
  • bus_stop_to_hanover_id (ForeignKey) – Bus stop to hanover
  • bus_stop_from_hanover_id (ForeignKey) – Bus stop from hanover
  • financial_assistance (CharField) – Are you requesting financial assistance from doc trips? if ‘yes’ we will contact you in july with more information about your financial assistance.
  • waiver (CharField) – I certify that i have read this assumption of risk and the accompanying registration materials. i approve participation for the student indicated above and this serves as my digital signature of this release, waiver and acknowledgement.
  • doc_membership (CharField) – Would you like to purchase a doc membership?
  • green_fund_donation (PositiveSmallIntegerField) – Green fund donation
  • final_request (TextField) – We know this form is really long, so thanks for sticking with us! the following question has nothing to do with your trip assignment. to whatever extent you feel comfortable, please share one thing you are excited and/or nervous for about coming to dartmouth (big or small). there is no right or wrong answers — anything goes! all responses will remain anonymous.
get_available_trips()[source]

Return available Trips

For both preferred and available Sections

get_firstchoice_trips()[source]

Return first choice Trips

For both preferred and available Sections

get_incoming_student()[source]

Return this registration’s IncomingStudent, or None if DNE

get_preferred_trips()[source]

Return preferred Trips

For both preferred and available Sections

get_trip_assignment()[source]

Return the trip assignment for this registration’s trippee.

If the registration does not have an associated IncomingStudent, or IncomingStudent is not assigned to a trip, return None.

match()[source]

Try to match this registration with incoming student data.

Returns the matched IncomingStudent, or None.

class fyt.incoming.models.Settings(*args, **kwargs)[source]

Contains global configuration values that appear across the site

Parameters:
  • id (AutoField) – Id
  • trips_year_id (ForeignKey) – Trips year
  • trips_cost (PositiveSmallIntegerField) – Trips cost
  • doc_membership_cost (PositiveSmallIntegerField) – Doc membership cost
  • contact_url (URLField) – url of trips directorate contact info
fyt.incoming.models.connect_registration_to_trippee(instance=None, **kwargs)[source]

When an incoming student submits a registration, try and find the student’s college-provided information and attach to the registration.

If the info cannot be found, the registration is left to sit.

fyt.incoming.models.create_trippee_for_college_info(instance=None, **kwargs)[source]

If the incoming student has somehow already submitted a registration, attach the registration to the new object.

fyt.incoming.models.sort_by_lastname(students)[source]

Sort an iterable of IncomingStudents by last name.