CarApplication¶
Qualified name: intranet.apps.parking.models.CarApplication
- class intranet.apps.parking.models.CarApplication(id, user, license_plate, make, model, year, added, updated)[source]¶
Bases:
Model- Parameters:
id (AutoField) – Primary key: ID
license_plate (CharField) – License plate
make (CharField) – Make
model (CharField) – Model
year (PositiveIntegerField) – Year
added (DateTimeField) – Added
updated (DateTimeField) – Updated
Relationship fields:
- Parameters:
user (
ForeignKeytoUser) – User (related name:carapplication)
Reverse relationships:
- Parameters:
parkingapplication (Reverse
ManyToManyFieldfromParkingApplication) – All parking applications of this car application (related name ofcars)
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:
DateTimeFieldidType:
AutoFieldlicense_plateType:
CharFieldmakeType:
CharFieldmodelType:
CharFieldobjectsparkingapplication_setType: Reverse
ManyToManyFieldfromParkingApplicationupdatedType:
DateTimeFielduserType:
ForeignKeytoUseruser_idInternal field, use
userinstead.yearType:
PositiveIntegerField