PrintJobForm¶
Qualified name: intranet.apps.printing.forms.PrintJobForm
- class intranet.apps.printing.forms.PrintJobForm(*args, **kwargs)[source]¶
Bases:
ModelForm
Form fields:
file
: File (FileField
)printer
: Printer (ChoiceField
)page_range
: Page Range (RegexField
)duplex
: Double-sided (BooleanField
)fit
: Fit-to-page (BooleanField
)
Methods
Expects string that only includes commas, digits, and dashes (already validated by regex) Validates that the page_range field's ranges and numbers correctly selects any pages from 1 to infinity.
validate_size
Attributes
media