Skip to content

Commit fb15e3b

Browse files
committed
fix bug with acl input
1 parent 007877f commit fb15e3b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

netbox_acls/forms/models.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -239,9 +239,8 @@ def clean(self):
239239
"name": [error_same_acl_name],
240240
}
241241
# Check if Access List has no existing rules before change the Access List's type.
242-
if (
243-
self.instance.pk
244-
and (
242+
if self.instance.pk and (
243+
(
245244
acl_type == ACLTypeChoices.TYPE_EXTENDED
246245
and self.instance.aclstandardrules.exists()
247246
)

0 commit comments

Comments
 (0)