intranet.apps.seniors package¶
Subpackages¶
Submodules¶
intranet.apps.seniors.admin module¶
intranet.apps.seniors.forms module¶
intranet.apps.seniors.models module¶
- class intranet.apps.seniors.models.College(id, name, ceeb)[source]¶
Bases:
Model
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- ceeb¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- name¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <django.db.models.manager.Manager object>¶
- senior_set¶
Accessor to the related objects manager on the reverse side of a many-to-one relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Parent.children
is aReverseManyToOneDescriptor
instance.Most of the implementation is delegated to a dynamically defined manager class built by
create_forward_many_to_many_manager()
defined below.
- class intranet.apps.seniors.models.Senior(id, user, college, major, college_sure, major_sure)[source]¶
Bases:
Model
- exception DoesNotExist¶
Bases:
ObjectDoesNotExist
- MAJORS = ['Computer Science', 'Engineering', 'Education', 'Mathematics', 'Physics', 'Biology', 'Chemistry', 'Geology', 'History', 'Literature', 'English', 'Other', 'Language', 'Drama/Theater', 'Undecided', 'Music', 'Political Science', 'Neuroscience', 'Business', 'Economics', 'Communications', 'World Studies', 'Art/Art History', 'Biochemistry', 'Computer Engineering', 'Anthropology', 'Film', 'Atmospheric Science', 'Astronomy', 'Psychology', 'Genetics', 'Social Work', 'Architecture', 'Public Policy', 'Classics', 'Marine Biology', 'Dance', 'Philosophy', 'Emergency Health Services', 'Animal Science', 'Computer and Video Imaging', 'Geography', 'International Relations', 'Foreign Service', 'Broadcast Journalism', 'Semitic Studies', 'Microbiology', 'Finance', 'Journalism', 'Aeronautics/Astronautics', 'Pre-med', 'Pre-law', 'Automotive Technician', 'Computer Game Design', 'Petroleum Engineering', 'American Studies', 'African-American Studies', 'Linguistics', 'Sociology', 'International Finance', 'Public Policy in Science and Technology', 'Information Technology', 'Network Engineering', 'Environmental Science', 'Evolutionary Biology', 'Advertising', 'Apparel Design', 'East Asian Studies', 'Biomedical Engineering', 'Policy Analysis and Management', 'Videogame Design and Development', 'Electrical Engineering', 'Information Systems', 'Theatre', 'Theatre/Directing', 'Leadership', 'Design', 'Environmental Thought and Practice', 'Athletic Training', 'Physical Therapy', 'Chemical Engineering', 'Athletic Training & Physical Therapy', 'Civil Engineering', 'Industrial and Labor Relations', 'Bowling Management', 'Pre-Dental', 'Aerospace Engineering', 'French', 'German', 'Spanish', 'Italian', 'Chinese', 'Operations Research', 'Game Design and Development', 'Software Engineering', 'International Development', 'Mechanical Engineering', 'Mathematics & Computer Science']¶
- exception MultipleObjectsReturned¶
Bases:
MultipleObjectsReturned
- college¶
Accessor to the related object on the forward side of a many-to-one or one-to-one (via ForwardOneToOneDescriptor subclass) relation.
In the example:
class Child(Model): parent = ForeignKey(Parent, related_name='children')
Child.parent
is aForwardManyToOneDescriptor
instance.
- college_id¶
- college_sure¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- get_major_display(*, field=<django.db.models.fields.CharField: major>)¶
- id¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- major¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- major_sure¶
A wrapper for a deferred-loading field. When the value is read from this object the first time, the query is executed.
- objects = <intranet.apps.seniors.models.SeniorManager object>¶
- user¶
Accessor to the related object on the forward side of a one-to-one relation.
In the example:
class Restaurant(Model): place = OneToOneField(Place, related_name='restaurant')
Restaurant.place
is aForwardOneToOneDescriptor
instance.
- user_id¶
intranet.apps.seniors.tests module¶
- class intranet.apps.seniors.tests.SeniorsCommandsTestCase(methodName='runTest')[source]¶
Bases:
IonTestCase
Test cases for the commands to manage the seniors app.
- class intranet.apps.seniors.tests.SeniorsTestCase(methodName='runTest')[source]¶
Bases:
IonTestCase
Test cases for the seniors app.