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:
id (AutoField) – Primary key: ID
calc_serial (CharField) – Calc serial
calc_id (CharField) – Calc id
calc_type (CharField) – Calc type
added (DateTimeField) – Added
Relationship fields:
- Parameters:
user (
ForeignKey
toUser
) – 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
toUser
user_id
Internal field, use
user
instead.