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 (
ForeignKey
toUser
) – User (related name:parkingapplication
)joint_user (
ForeignKey
toUser
) – Joint user (related name:parkingapplication_joint
)cars (
ManyToManyField
toCarApplication
) – Cars (related name:parkingapplication
)
Methods
get_next_by_added
Finds next instance based on
added
.get_next_by_updated
Finds next instance based on
updated
.get_previous_by_added
Finds previous instance based on
added
.get_previous_by_updated
Finds previous instance based on
updated
.Attributes
added
Type:
DateTimeField
cars
Type:
ManyToManyField
toCarApplication
email
Type:
CharField
id
Type:
AutoField
joint_user
Type:
ForeignKey
toUser
joint_user_id
Internal field, use
joint_user
instead.mentorship
Type:
BooleanField
objects
updated
Type:
DateTimeField
user
Type:
ForeignKey
toUser
user_id
Internal field, use
user
instead.