PrintJob¶
Qualified name: intranet.apps.printing.models.PrintJob
- class intranet.apps.printing.models.PrintJob(*args, **kwargs)[source]¶
Bases:
Model
Represents a submitted print job to Ion printing.
- user¶
The user submitting the job.
- Type:
User
- file¶
The file that the user submitted.
- Type:
File
- time¶
The time the job was submitted.
- Type:
- Parameters:
id (AutoField) – Primary key: ID
printer (CharField) – Printer
file (FileField) – File
page_range (CharField) – Page range
time (DateTimeField) – Time
printed (BooleanField) – Printed
num_pages (IntegerField) – Num pages
duplex (BooleanField) – Double-sided
fit (BooleanField) – Fit-to-page
Relationship fields:
- Parameters:
user (
ForeignKey
toUser
) – User (related name:printjob
)
Methods
get_next_by_time
Finds next instance based on
time
.get_previous_by_time
Finds previous instance based on
time
.Attributes
Type:
BooleanField
Type:
FileField
Type:
BooleanField
id
Type:
AutoField
Type:
IntegerField
objects
Type:
CharField
Type:
BooleanField
Type:
CharField
Type:
DateTimeField
Type:
ForeignKey
toUser
user_id
Internal field, use
user
instead.