mirror of
https://github.com/netbox-community/netbox.git
synced 2025-09-06 14:23:36 -06:00
#17413: Remove redundant name & slug fields from Platform model
This commit is contained in:
parent
efcf9e5b3b
commit
62d93d607c
@ -438,15 +438,6 @@ class Platform(NestedGroupModel):
|
|||||||
null=True,
|
null=True,
|
||||||
help_text=_('Optionally limit this platform to devices of a certain manufacturer')
|
help_text=_('Optionally limit this platform to devices of a certain manufacturer')
|
||||||
)
|
)
|
||||||
# Override name & slug from OrganizationalModel to not enforce uniqueness
|
|
||||||
name = models.CharField(
|
|
||||||
verbose_name=_('name'),
|
|
||||||
max_length=100
|
|
||||||
)
|
|
||||||
slug = models.SlugField(
|
|
||||||
verbose_name=_('slug'),
|
|
||||||
max_length=100
|
|
||||||
)
|
|
||||||
config_template = models.ForeignKey(
|
config_template = models.ForeignKey(
|
||||||
to='extras.ConfigTemplate',
|
to='extras.ConfigTemplate',
|
||||||
on_delete=models.PROTECT,
|
on_delete=models.PROTECT,
|
||||||
|
Loading…
Reference in New Issue
Block a user