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 django.utils.translation import gettext_lazy as _
from helpdesk import settings as helpdesk_settings from helpdesk import settings as helpdesk_settings
from helpdesk.models import ( from helpdesk.models import (
Checklist,
ChecklistTask,
ChecklistTemplate,
CustomField, CustomField,
EmailTemplate, EmailTemplate,
EscalationExclusion, EscalationExclusion,
@ -13,7 +16,7 @@ from helpdesk.models import (
PreSetReply, PreSetReply,
Queue, Queue,
Ticket, Ticket,
TicketChange, Checklist, ChecklistTemplate, ChecklistTask TicketChange
) )

View File

@ -7,7 +7,6 @@ forms.py - Definitions of newforms-based forms for creating and maintaining
tickets. tickets.
""" """
from datetime import datetime from datetime import datetime
from django import forms from django import forms
from django.conf import settings 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 import settings as helpdesk_settings
from helpdesk.lib import convert_value, process_attachments, safe_template_context from helpdesk.lib import convert_value, process_attachments, safe_template_context
from helpdesk.models import ( from helpdesk.models import (
Checklist,
ChecklistTemplate,
CustomField, CustomField,
FollowUp, FollowUp,
IgnoreEmail, IgnoreEmail,
@ -26,9 +27,7 @@ from helpdesk.models import (
TicketCC, TicketCC,
TicketCustomFieldValue, TicketCustomFieldValue,
TicketDependency, TicketDependency,
UserSettings, UserSettings
Checklist,
ChecklistTemplate
) )
from helpdesk.settings import ( from helpdesk.settings import (
CUSTOMFIELD_DATE_FORMAT, 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 views/staff.py - The bulk of the application - provides most business logic and
renders all staff-facing views. renders all staff-facing views.
""" """
from ..lib import format_time_spent from ..lib import format_time_spent
from ..templated_email import send_templated_mail from ..templated_email import send_templated_mail
from collections import defaultdict 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.handlers.wsgi import WSGIRequest
from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator from django.core.paginator import EmptyPage, PageNotAnInteger, Paginator
from django.db.models import Q 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.http import Http404, HttpResponse, HttpResponseRedirect, JsonResponse
from django.shortcuts import get_object_or_404, redirect, render from django.shortcuts import get_object_or_404, redirect, render
from django.urls import reverse, reverse_lazy from django.urls import reverse, reverse_lazy
@ -39,24 +40,27 @@ from helpdesk.decorators import (
superuser_required superuser_required
) )
from helpdesk.forms import ( from helpdesk.forms import (
ChecklistForm,
ChecklistTemplateForm,
CreateChecklistForm,
CUSTOMFIELD_DATE_FORMAT, CUSTOMFIELD_DATE_FORMAT,
EditFollowUpForm, EditFollowUpForm,
EditTicketForm, EditTicketForm,
EmailIgnoreForm, EmailIgnoreForm,
FormControlDeleteFormSet,
MultipleTicketSelectForm, MultipleTicketSelectForm,
TicketCCEmailForm, TicketCCEmailForm,
TicketCCForm, TicketCCForm,
TicketCCUserForm, TicketCCUserForm,
TicketDependencyForm, TicketDependencyForm,
TicketForm, TicketForm,
UserSettingsForm, UserSettingsForm
CreateChecklistForm,
ChecklistForm,
FormControlDeleteFormSet,
ChecklistTemplateForm
) )
from helpdesk.lib import process_attachments, queue_template_context, safe_template_context from helpdesk.lib import process_attachments, queue_template_context, safe_template_context
from helpdesk.models import ( from helpdesk.models import (
Checklist,
ChecklistTask,
ChecklistTemplate,
CustomField, CustomField,
FollowUp, FollowUp,
FollowUpAttachment, FollowUpAttachment,
@ -69,10 +73,7 @@ from helpdesk.models import (
TicketChange, TicketChange,
TicketCustomFieldValue, TicketCustomFieldValue,
TicketDependency, TicketDependency,
UserSettings, UserSettings
Checklist,
ChecklistTask,
ChecklistTemplate
) )
from helpdesk.query import get_query_class, query_from_base64, query_to_base64 from helpdesk.query import get_query_class, query_from_base64, query_to_base64
from helpdesk.user import HelpdeskUser from helpdesk.user import HelpdeskUser