1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Remove "primary for" references to Device on IPAddress

This commit is contained in:
jeremystretch
2021-11-17 12:50:46 -05:00
parent 424ac29131
commit a000ded350
3 changed files with 27 additions and 8 deletions

View File

@ -540,7 +540,7 @@ class Device(PrimaryModel, ConfigContextModel):
primary_ip4 = models.OneToOneField(
to='ipam.IPAddress',
on_delete=models.SET_NULL,
related_name='primary_ip4_for',
related_name='+',
blank=True,
null=True,
verbose_name='Primary IPv4'
@ -548,7 +548,7 @@ class Device(PrimaryModel, ConfigContextModel):
primary_ip6 = models.OneToOneField(
to='ipam.IPAddress',
on_delete=models.SET_NULL,
related_name='primary_ip6_for',
related_name='+',
blank=True,
null=True,
verbose_name='Primary IPv6'