mirror of
https://github.com/netbox-community/netbox.git
synced 2025-08-17 04:58:16 -06:00
Fix #3193 by changing OneToOneField to ForeignKey
This commit is contained in:
parent
90f7122fde
commit
1fc448abb7
@ -1939,14 +1939,14 @@ class Interface(CableTermination, ComponentModel):
|
|||||||
name = models.CharField(
|
name = models.CharField(
|
||||||
max_length=64
|
max_length=64
|
||||||
)
|
)
|
||||||
_connected_interface = models.OneToOneField(
|
_connected_interface = models.ForeignKey(
|
||||||
to='self',
|
to='self',
|
||||||
on_delete=models.SET_NULL,
|
on_delete=models.SET_NULL,
|
||||||
related_name='+',
|
related_name='+',
|
||||||
blank=True,
|
blank=True,
|
||||||
null=True
|
null=True
|
||||||
)
|
)
|
||||||
_connected_circuittermination = models.OneToOneField(
|
_connected_circuittermination = models.ForeignKey(
|
||||||
to='circuits.CircuitTermination',
|
to='circuits.CircuitTermination',
|
||||||
on_delete=models.SET_NULL,
|
on_delete=models.SET_NULL,
|
||||||
related_name='+',
|
related_name='+',
|
||||||
|
Loading…
Reference in New Issue
Block a user