Skip to content

Commit

Permalink
Fixed incorrect API URL in IPAddressForm
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremystretch committed May 9, 2017
1 parent b32b308 commit 389b767
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netbox/ipam/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ class Meta:
model = IPAddress
fields = ['address', 'vrf', 'tenant', 'status', 'description', 'interface', 'primary_for_device', 'nat_inside']
widgets = {
'interface': APISelect(api_url='/api/dcim/devices/interfaces/?device_id={{interface_device}}'),
'interface': APISelect(api_url='/api/dcim/interfaces/?device_id={{interface_device}}'),
'nat_inside': APISelect(api_url='/api/ipam/ip-addresses/?device_id={{nat_device}}', display_field='address')
}

Expand Down

0 comments on commit 389b767

Please sign in to comment.