From a8ca536d44cafe2b799033ee0b413a18ef91511e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Tue, 10 Sep 2019 15:50:35 -0400 Subject: [PATCH] Bump platform name/slug max length to 100 chars (#3318) --- CHANGELOG.md | 2 +- .../0074_increase_field_length_platform_name_slug.py | 4 ++-- netbox/dcim/models.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c047c3c81..f05fac2be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ v2.6.4 (FUTURE) * [#2160](https://github.com/netbox-community/netbox/issues/2160) - Add bulk editing for interface VLAN assignment * [#3027](https://github.com/netbox-community/netbox/issues/3028) - Add `local_context_data` boolean filter for devices -* [#3318](https://github.com/netbox-community/netbox/issues/3318) - Increase length of platform name and slug to 64 characters +* [#3318](https://github.com/netbox-community/netbox/issues/3318) - Increase length of platform name and slug to 100 characters * [#3341](https://github.com/netbox-community/netbox/issues/3341) - Enable inline VLAN assignment while editing an interface ## Bug Fixes diff --git a/netbox/dcim/migrations/0074_increase_field_length_platform_name_slug.py b/netbox/dcim/migrations/0074_increase_field_length_platform_name_slug.py index 4fd8f203c..2c8a2255c 100644 --- a/netbox/dcim/migrations/0074_increase_field_length_platform_name_slug.py +++ b/netbox/dcim/migrations/0074_increase_field_length_platform_name_slug.py @@ -13,11 +13,11 @@ class Migration(migrations.Migration): migrations.AlterField( model_name='platform', name='name', - field=models.CharField(max_length=64, unique=True), + field=models.CharField(max_length=100, unique=True), ), migrations.AlterField( model_name='platform', name='slug', - field=models.SlugField(max_length=64, unique=True), + field=models.SlugField(max_length=100, unique=True), ), ] diff --git a/netbox/dcim/models.py b/netbox/dcim/models.py index 29384abcd..88d2aee1d 100644 --- a/netbox/dcim/models.py +++ b/netbox/dcim/models.py @@ -1385,12 +1385,12 @@ class Platform(ChangeLoggedModel): specifying a NAPALM driver. """ name = models.CharField( - max_length=64, + max_length=100, unique=True ) slug = models.SlugField( unique=True, - max_length=64 + max_length=100 ) manufacturer = models.ForeignKey( to='dcim.Manufacturer',