Removed unused imports, format long line

This commit is contained in:
Martin Whitehouse 2022-07-22 01:21:25 +02:00
parent fb21d9bcdc
commit e2a8b974dd
No known key found for this signature in database
GPG Key ID: 3FCE1D3E9DEC09C1

View File

@ -7,7 +7,7 @@ forms.py - Definitions of newforms-based forms for creating and maintaining
tickets. tickets.
""" """
import logging import logging
from datetime import datetime, date, time from datetime import datetime
from django.core.exceptions import ObjectDoesNotExist, ValidationError from django.core.exceptions import ObjectDoesNotExist, ValidationError
from django import forms from django import forms
@ -226,7 +226,10 @@ class AbstractTicketForm(CustomFieldMixin, forms.Form):
widget=forms.FileInput(attrs={'class': 'form-control-file'}), widget=forms.FileInput(attrs={'class': 'form-control-file'}),
required=False, required=False,
label=_('Attach File'), label=_('Attach File'),
help_text=_('You can attach a file to this ticket. Only file types such as plain text (.txt), a document (.pdf, .docx, or .odt), or screenshot (.png or .jpg) may be uploaded.'), help_text=_('You can attach a file to this ticket. '
'Only file types such as plain text (.txt), '
'a document (.pdf, .docx, or .odt), '
'or screenshot (.png or .jpg) may be uploaded.'),
) )
class Media: class Media: