CalculatorRegistration

Qualified name: intranet.apps.itemreg.models.CalculatorRegistration

class intranet.apps.itemreg.models.CalculatorRegistration(id, user, calc_serial, calc_id, calc_type, added)[source]

Bases: Model

Parameters:

Relationship fields:

Parameters:

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

Methods

get_calc_type_display

Shows the label of the calc_type.

get_next_by_added

Finds next instance based on added.

get_previous_by_added

Finds previous instance based on added.

Attributes

CALC_CHOICES

added

Type: DateTimeField

calc_id

Type: CharField

calc_serial

Type: CharField

calc_type

Type: CharField

id

Type: AutoField

objects

user

Type: ForeignKey to User

user_id

Internal field, use user instead.