Fix isort issues

This commit is contained in:
Benbb96 2023-04-30 04:13:50 +02:00
parent 3235333873
commit 3b55f37fb5
No known key found for this signature in database
3 changed files with 18 additions and 15 deletions

View File

@ -3,6 +3,9 @@ from django.contrib import admin
from django.utils.translation import gettext_lazy as _
from helpdesk import settings as helpdesk_settings
from helpdesk.models import (
Checklist,
ChecklistTask,
ChecklistTemplate,
CustomField,
EmailTemplate,
EscalationExclusion,
@ -13,7 +16,7 @@ from helpdesk.models import (
PreSetReply,
Queue,
Ticket,
TicketChange, Checklist, ChecklistTemplate, ChecklistTask
TicketChange
)

View File

@ -7,7 +7,6 @@ forms.py - Definitions of newforms-based forms for creating and maintaining
tickets.
"""
from datetime import datetime
from django import forms
from django.conf import settings
@ -18,6 +17,8 @@ from django.utils.translation import gettext_lazy as _
from helpdesk import settings as helpdesk_settings
from helpdesk.lib import convert_value, process_attachments, safe_template_context
from helpdesk.models import (
Checklist,
ChecklistTemplate,
CustomField,
FollowUp,
IgnoreEmail,
@ -26,9 +27,7 @@ from helpdesk.models import (
TicketCC,
TicketCustomFieldValue,
TicketDependency,
UserSettings,
Checklist,
ChecklistTemplate
UserSettings
)
from helpdesk.settings import (
CUSTOMFIELD_DATE_FORMAT,

View File

@ -6,6 +6,7 @@ django-helpdesk - A Django powered ticket tracker for small enterprise.
views/staff.py - The bulk of the application - provides most business logic and
renders all staff-facing views.
"""
from ..lib import format_time_spent
from ..templated_email import send_templated_mail
from collections import defaultdict
@ -20,7 +21,7 @@ from django.core.exceptions import PermissionDenied, ValidationError
from django.core.handlers.wsgi import WSGIRequest
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db.models import Q
from django.forms import inlineformset_factory, TextInput, HiddenInput
from django.forms import HiddenInput, inlineformset_factory, TextInput
from django.http import Http404, HttpResponse, HttpResponseRedirect, JsonResponse
from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse, reverse_lazy
@ -39,24 +40,27 @@ from helpdesk.decorators import (
superuser_required
)
from helpdesk.forms import (
ChecklistForm,
ChecklistTemplateForm,
CreateChecklistForm,
CUSTOMFIELD_DATE_FORMAT,
EditFollowUpForm,
EditTicketForm,
EmailIgnoreForm,
FormControlDeleteFormSet,
MultipleTicketSelectForm,
TicketCCEmailForm,
TicketCCForm,
TicketCCUserForm,
TicketDependencyForm,
TicketForm,
UserSettingsForm,
CreateChecklistForm,
ChecklistForm,
FormControlDeleteFormSet,
ChecklistTemplateForm
UserSettingsForm
)
from helpdesk.lib import process_attachments, queue_template_context, safe_template_context
from helpdesk.models import (
Checklist,
ChecklistTask,
ChecklistTemplate,
CustomField,
FollowUp,
FollowUpAttachment,
@ -69,10 +73,7 @@ from helpdesk.models import (
TicketChange,
TicketCustomFieldValue,
TicketDependency,
UserSettings,
Checklist,
ChecklistTask,
ChecklistTemplate
UserSettings
)
from helpdesk.query import get_query_class, query_from_base64, query_to_base64
from helpdesk.user import HelpdeskUser