8
0
Fork 0
mirror of https://gitlab2.federez.net/re2o/re2o synced 2024-11-25 04:43:10 +00:00

[Printer] Update docstrings in models

This commit is contained in:
Maxime Bombar 2018-11-30 12:51:51 +01:00 committed by root
parent 3fe8dfe201
commit 94f8e21a81

View file

@ -116,14 +116,15 @@ class JobWithOptions(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model
This is the main model of printer application : This is the main model of printer application :
- ```user``` is a ForeignKey to the User Application - ```user``` is a ForeignKey to the User Application
- ```print_operation``` the PrintOperation wrapping this job.
- ```paid``` a boolean field to specify whether or not the job has been paid.
- ```file``` is the file to print - ```file``` is the file to print
- ```filename``` is the name of the file to print - ```filename``` is the name of the file to print
- ```starttime``` is the time when the job was launched - ```starttime``` is the time when the job was launched
- ```endtime``` is the time when the job was stopped. - ```endtime``` is the time when the job was stopped.
A job is stopped when it is either finished or cancelled. A job is stopped when it is either finished or cancelled.
- ```status``` can be running, finished or cancelled. - ```status``` can be pending, printable, running, finished or cancelled.
- ```club``` is blank in general. If the job was launched as a club then - ```PrintAs``` is the user/club to whom belongs this job.
it is the id of the club.
- ```price``` is the total price of this printing. - ```price``` is the total price of this printing.
Printing Options : Printing Options :