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

No need to reference the model itself

This commit is contained in:
Jonathan Senecal
2020-06-10 15:11:47 -04:00
parent f041c762ac
commit 3b54d6f8e5
2 changed files with 10 additions and 10 deletions

View File

@ -72,7 +72,7 @@ class ConsolePortTemplate(ComponentTemplateModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this console port"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -117,7 +117,7 @@ class ConsoleServerPortTemplate(ComponentTemplateModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this console server port"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -162,7 +162,7 @@ class PowerPortTemplate(ComponentTemplateModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this power supply port"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -221,7 +221,7 @@ class PowerOutletTemplate(ComponentTemplateModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this power outlet"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -294,7 +294,7 @@ class InterfaceTemplate(ComponentTemplateModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this interface"
help_text="Physical label"
)
type = models.CharField(
max_length=50,

View File

@ -234,7 +234,7 @@ class ConsolePort(CableTermination, ComponentModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this console port"
help_text="Physical label"
)
_name = NaturalOrderingField(
target_field='name',
@ -308,7 +308,7 @@ class ConsoleServerPort(CableTermination, ComponentModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this console server port"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -370,7 +370,7 @@ class PowerPort(CableTermination, ComponentModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this power supply port"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -540,7 +540,7 @@ class PowerOutlet(CableTermination, ComponentModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this power outlet"
help_text="Physical label"
)
type = models.CharField(
max_length=50,
@ -636,7 +636,7 @@ class Interface(CableTermination, ComponentModel):
label = models.CharField(
max_length=64,
blank=True,
help_text="The physical label for this interface"
help_text="Physical label"
)
_connected_interface = models.OneToOneField(
to='self',