Sfoglia il codice sorgente

#17413: Remove redundant name & slug fields from Platform model

Jeremy Stretch 6 mesi fa
parent
commit
62d93d607c
1 ha cambiato i file con 0 aggiunte e 9 eliminazioni
  1. 0 9
      netbox/dcim/models/devices.py

+ 0 - 9
netbox/dcim/models/devices.py

@@ -438,15 +438,6 @@ class Platform(NestedGroupModel):
         null=True,
         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(
         to='extras.ConfigTemplate',
         on_delete=models.PROTECT,