File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed
.devcontainer/configuration Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change 5
5
# See https://github.com/netbox-community/netbox-docker/wiki/Using-Netbox-Plugins
6
6
7
7
PLUGINS = [
8
- "netbox_initializers" , # Loads demo data
8
+ "netbox_initializers" , # Loads demo data
9
9
"netbox_acls" ,
10
10
]
11
11
Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ class ACLInterfaceAssignmentForm(NetBoxModelForm):
234
234
queryset = Device .objects .all (),
235
235
required = False ,
236
236
# query_params={
237
- # Need to pass ACL device to it
237
+ # Need to pass ACL device to it
238
238
# },
239
239
)
240
240
interface = DynamicModelChoiceField (
@@ -248,7 +248,7 @@ class ACLInterfaceAssignmentForm(NetBoxModelForm):
248
248
queryset = VirtualMachine .objects .all (),
249
249
required = False ,
250
250
# query_params={
251
- # Need to pass ACL device to it
251
+ # Need to pass ACL device to it
252
252
# },
253
253
label = "Virtual Machine" ,
254
254
)
@@ -409,7 +409,9 @@ def clean(self):
409
409
410
410
def save (self , * args , ** kwargs ):
411
411
# Set assigned object
412
- self .instance .assigned_object = self .cleaned_data .get ("interface" ) or self .cleaned_data .get ("vminterface" )
412
+ self .instance .assigned_object = self .cleaned_data .get (
413
+ "interface"
414
+ ) or self .cleaned_data .get ("vminterface" )
413
415
return super ().save (* args , ** kwargs )
414
416
415
417
Original file line number Diff line number Diff line change @@ -25,4 +25,4 @@ def read(rel_path):
25
25
packages = find_packages (),
26
26
include_package_data = True ,
27
27
zip_safe = False ,
28
- )
28
+ )
You can’t perform that action at this time.
0 commit comments