Incoming Student Views

class fyt.incoming.views.BaseRegistrationView[source]

CBV base for registration form with all contextual information

form_class

alias of RegistrationForm

model

alias of Registration

class fyt.incoming.views.EditRegistration(**kwargs)[source]

Edit a trips registration.

get_object()[source]

Get registration for user

class fyt.incoming.views.EditSettings(**kwargs)[source]

Edit Registration settings - cost, contact info

model

alias of Settings

class fyt.incoming.views.IfRegistrationAvailable[source]

Redirect if trippee registration is not currently available

class fyt.incoming.views.IncomingStudentDelete(**kwargs)[source]

Delete an incoming student.

model

alias of IncomingStudent

class fyt.incoming.views.IncomingStudentIndex(**kwargs)[source]

All incoming students

model

alias of IncomingStudent

class fyt.incoming.views.IncomingStudentPortal(**kwargs)[source]

Information for incoming students.

Shows trip assignment, if available, and link to registration.

get_incoming_student()[source]

Return user’s incoming student data, or None if DNE.

get_registration()[source]

Return current user’s registration, or None if DNE.

class fyt.incoming.views.IncomingStudentUpdate(**kwargs)[source]

Edit other incoming student information.

form_class

alias of TrippeeInfoForm

model

alias of IncomingStudent

class fyt.incoming.views.MatchRegistrations(**kwargs)[source]

Match all registrations for this trips_year.

Backdoor solution in case auto-matching is not working.

Todo

expose this with a link

form_valid(form)[source]

Try and match all unmatched registrations.

class fyt.incoming.views.NonStudentRegistration(**kwargs)[source]

Used to register a non-student for trips.

This was needed because a TA was going on trips but would not be assigned a netid until mid-September. We needed some way to put her in the system. She won’t be able to log in and see her assignment, but she can be assigned to a trip.

This view creates a registration linked to the sentinel user, and an associated incoming student object.

Todo

I don’t think this will handle more than one no-student registration per year because sentinel.netid is not unique.

form_class

alias of RegistrationForm

model

alias of Registration

class fyt.incoming.views.Register(**kwargs)[source]

Register for trips

Redirect to the edit view if this incoming student has already registered.

dispatch(request, *args, **kwargs)[source]

Redirect to edit existing application

This is redundantly decorated with login_required to prevent user from being anonymous. Otherwise this gets called first in the MRO order then passed to the LoginRequiredMixin, which doesn’t work.

form_valid(form, **kwargs)[source]

Add the registering user to the registration

The registration will be automagically matched with a corresponding IncomingStudent model if it exists.

class fyt.incoming.views.RegistrationDelete(**kwargs)[source]

Delete a registration.

model

alias of Registration

class fyt.incoming.views.RegistrationIndex(**kwargs)[source]

All trippee registrations.

model

alias of Registration

class fyt.incoming.views.RegistrationNotAvailable(**kwargs)[source]

View shown if registration is not available.

class fyt.incoming.views.RegistrationUpdate(**kwargs)[source]

Edit a registration.

form_class

alias of RegistrationForm

model

alias of Registration

class fyt.incoming.views.UpdateTripAssignment(**kwargs)[source]

Edit trip and bus assignments for an incoming student.

form_class

alias of AssignmentForm

model

alias of IncomingStudent

class fyt.incoming.views.UploadIncomingStudentData(**kwargs)[source]

Accept an upload of CSV file of incoming students.

Parses the CSV file and adds the data to the database as IncomingStudent objects.

Todo

parse or input the status of the incoming student

Todo

simplify and document the column names

form_class

alias of UploadIncomingStudentsForm