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

Fixes: #3318 - Increases length of platform name and slug to 64 characters (#3353)

This commit is contained in:
Daniel Sheppard
2019-09-06 13:01:27 -05:00
committed by GitHub
parent 9c6dbd7337
commit 050f2478d3
4 changed files with 31 additions and 4 deletions

View File

@@ -1385,11 +1385,12 @@ class Platform(ChangeLoggedModel):
specifying a NAPALM driver.
"""
name = models.CharField(
max_length=50,
max_length=64,
unique=True
)
slug = models.SlugField(
unique=True
unique=True,
max_length=64
)
manufacturer = models.ForeignKey(
to='dcim.Manufacturer',