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:

Relationship fields:

Parameters:

user (ForeignKey to User) – User (related name: carapplication)

Reverse relationships:

Parameters:

parkingapplication (Reverse ManyToManyField from ParkingApplication) – All parking applications of this car application (related name of cars)

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

id

Type: AutoField

license_plate

Type: CharField

make

Type: CharField

model

Type: CharField

objects

parkingapplication_set

Type: Reverse ManyToManyField from ParkingApplication

updated

Type: DateTimeField

user

Type: ForeignKey to User

user_id

Internal field, use user instead.

year

Type: PositiveIntegerField