Skip to content

Commit

Permalink
Reorder/clean up imports in incident views
Browse files Browse the repository at this point in the history
  • Loading branch information
johannaengland committed Dec 4, 2024
1 parent c04d7df commit be9ee9d
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions src/argus/incident/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,13 @@
from rest_framework.reverse import reverse

from argus.drf.permissions import IsSuperuserOrReadOnly
from argus.incident.models import Acknowledgement, Event
from argus.incident.ticket.base import (
TicketClientException,
TicketCreationException,
TicketPluginException,
TicketSettingsException,
)
from argus.incident.ticket.utils import (
get_autocreate_ticket_plugin,
serialize_incident_for_ticket_autocreation,
)
from argus.filter import get_filter_backend
from argus.util.datetime_utils import INFINITY_REPR
from argus.util.signals import bulk_changed

from .forms import AddSourceSystemForm
from .models import (
Acknowledgement,
ChangeEvent,
Event,
Incident,
Expand All @@ -63,6 +53,16 @@
TagSerializer,
IncidentTagRelation,
)
from .ticket.base import (
TicketClientException,
TicketCreationException,
TicketPluginException,
TicketSettingsException,
)
from .ticket.utils import (
get_autocreate_ticket_plugin,
serialize_incident_for_ticket_autocreation,
)

filter_backend = get_filter_backend()
IncidentFilter = filter_backend.IncidentFilter
Expand Down

0 comments on commit be9ee9d

Please sign in to comment.