Fix #3193 by changing OneToOneField to ForeignKey

This commit is contained in:
Sander Steffann 2019-06-12 18:20:30 +02:00 committed by GitHub
parent 90f7122fde
commit 1fc448abb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1939,14 +1939,14 @@ class Interface(CableTermination, ComponentModel):
name = models.CharField(
max_length=64
)
_connected_interface = models.OneToOneField(
_connected_interface = models.ForeignKey(
to='self',
on_delete=models.SET_NULL,
related_name='+',
blank=True,
null=True
)
_connected_circuittermination = models.OneToOneField(
_connected_circuittermination = models.ForeignKey(
to='circuits.CircuitTermination',
on_delete=models.SET_NULL,
related_name='+',