From 94f8e21a8154148004040ddf0306f3572b726187 Mon Sep 17 00:00:00 2001 From: Maxime Bombar Date: Fri, 30 Nov 2018 12:51:51 +0100 Subject: [PATCH] [Printer] Update docstrings in models --- printer/models.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/printer/models.py b/printer/models.py index a7f8213a..3bd9694d 100644 --- a/printer/models.py +++ b/printer/models.py @@ -116,14 +116,15 @@ class JobWithOptions(RevMixin, AclMixin, FieldPermissionModelMixin, models.Model This is the main model of printer 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 - ```filename``` is the name of the file to print - ```starttime``` is the time when the job was launched - ```endtime``` is the time when the job was stopped. A job is stopped when it is either finished or cancelled. - - ```status``` can be running, finished or cancelled. - - ```club``` is blank in general. If the job was launched as a club then - it is the id of the club. + - ```status``` can be pending, printable, running, finished or cancelled. + - ```PrintAs``` is the user/club to whom belongs this job. - ```price``` is the total price of this printing. Printing Options :