Skip to content

Commit 81d4e0f

Browse files
committed
remove unused imports
1 parent 843b1fa commit 81d4e0f

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

netbox_acls/forms/models.py

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,9 @@
66
from django import forms
77
from django.contrib.contenttypes.models import ContentType
88
from django.utils.safestring import mark_safe
9-
from extras.models import Tag
109
from ipam.models import Prefix
1110
from netbox.forms import NetBoxModelForm
12-
from utilities.forms import (
13-
CommentField,
14-
DynamicModelChoiceField,
15-
DynamicModelMultipleChoiceField,
16-
)
11+
from utilities.forms import CommentField, DynamicModelChoiceField
1712
from virtualization.models import (
1813
Cluster,
1914
ClusterGroup,
@@ -239,11 +234,11 @@ def clean(self):
239234
if self.instance.pk:
240235
# Check if Access List has no existing rules before change the Access List's type.
241236
if (
242-
acl_type == ACLTypeChoices.TYPE_EXTENDED
243-
and self.instance.aclstandardrules.exists()
237+
acl_type == ACLTypeChoices.TYPE_EXTENDED
238+
and self.instance.aclstandardrules.exists()
244239
) or (
245-
acl_type == ACLTypeChoices.TYPE_STANDARD
246-
and self.instance.aclextendedrules.exists()
240+
acl_type == ACLTypeChoices.TYPE_STANDARD
241+
and self.instance.aclextendedrules.exists()
247242
):
248243
error_message["type"] = [
249244
"This ACL has ACL rules associated, CANNOT change ACL type.",

0 commit comments

Comments
 (0)