ParkingApplication¶
Qualified name: intranet.apps.parking.models.ParkingApplication
- class intranet.apps.parking.models.ParkingApplication(id, user, joint_user, email, mentorship, added, updated)[source]¶
Bases:
Model- Parameters:
id (AutoField) – Primary key: ID
email (CharField) – Email
mentorship (BooleanField) – Mentorship
added (DateTimeField) – Added
updated (DateTimeField) – Updated
Relationship fields:
- Parameters:
user (
ForeignKeytoUser) – User (related name:parkingapplication)joint_user (
ForeignKeytoUser) – Joint user (related name:parkingapplication_joint)cars (
ManyToManyFieldtoCarApplication) – Cars (related name:parkingapplication)
Methods
get_next_by_addedFinds next instance based on
added.get_next_by_updatedFinds next instance based on
updated.get_previous_by_addedFinds previous instance based on
added.get_previous_by_updatedFinds previous instance based on
updated.Attributes
addedType:
DateTimeFieldcarsType:
ManyToManyFieldtoCarApplicationemailType:
CharFieldidType:
AutoFieldjoint_userType:
ForeignKeytoUserjoint_user_idInternal field, use
joint_userinstead.mentorshipType:
BooleanFieldobjectsupdatedType:
DateTimeFielduserType:
ForeignKeytoUseruser_idInternal field, use
userinstead.