Standardize existing description fields to a length of 200 chars

This commit is contained in:
Jeremy Stretch 2020-03-13 15:49:58 -04:00
parent f108049142
commit 3b4ec5926d
8 changed files with 21 additions and 22 deletions

View File

@ -108,7 +108,7 @@ class CircuitType(ChangeLoggedModel):
unique=True unique=True
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True, blank=True,
) )
@ -173,7 +173,7 @@ class Circuit(ChangeLoggedModel, CustomFieldModel):
null=True, null=True,
verbose_name='Commit rate (Kbps)') verbose_name='Commit rate (Kbps)')
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
comments = models.TextField( comments = models.TextField(
@ -292,7 +292,7 @@ class CircuitTermination(CableTermination):
verbose_name='Patch panel/port(s)' verbose_name='Patch panel/port(s)'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )

View File

@ -182,7 +182,7 @@ class Site(ChangeLoggedModel, CustomFieldModel):
blank=True blank=True
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
physical_address = models.CharField( physical_address = models.CharField(
@ -362,7 +362,7 @@ class RackRole(ChangeLoggedModel):
) )
color = ColorField() color = ColorField()
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True, blank=True,
) )
@ -785,7 +785,7 @@ class RackReservation(ChangeLoggedModel):
on_delete=models.PROTECT on_delete=models.PROTECT
) )
description = models.CharField( description = models.CharField(
max_length=100 max_length=200
) )
csv_headers = ['site', 'rack_group', 'rack', 'units', 'tenant', 'user', 'description'] csv_headers = ['site', 'rack_group', 'rack', 'units', 'tenant', 'user', 'description']
@ -1142,7 +1142,7 @@ class DeviceRole(ChangeLoggedModel):
help_text='Virtual machines may be assigned to this role' help_text='Virtual machines may be assigned to this role'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True, blank=True,
) )

View File

@ -33,7 +33,7 @@ __all__ = (
class ComponentModel(models.Model): class ComponentModel(models.Model):
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )

View File

@ -242,7 +242,7 @@ class CustomField(models.Model):
'the field\'s name will be used)' 'the field\'s name will be used)'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
required = models.BooleanField( required = models.BooleanField(
@ -764,7 +764,7 @@ class ConfigContext(models.Model):
default=1000 default=1000
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
is_active = models.BooleanField( is_active = models.BooleanField(

View File

@ -63,7 +63,7 @@ class VRF(ChangeLoggedModel, CustomFieldModel):
help_text='Prevent duplicate prefixes/IP addresses within this VRF' help_text='Prevent duplicate prefixes/IP addresses within this VRF'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
custom_field_values = GenericRelation( custom_field_values = GenericRelation(
@ -162,7 +162,7 @@ class Aggregate(ChangeLoggedModel, CustomFieldModel):
null=True null=True
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
custom_field_values = GenericRelation( custom_field_values = GenericRelation(
@ -261,7 +261,7 @@ class Role(ChangeLoggedModel):
default=1000 default=1000
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True, blank=True,
) )
@ -342,7 +342,7 @@ class Prefix(ChangeLoggedModel, CustomFieldModel):
help_text='All IP addresses within this prefix are considered usable' help_text='All IP addresses within this prefix are considered usable'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
custom_field_values = GenericRelation( custom_field_values = GenericRelation(
@ -612,7 +612,7 @@ class IPAddress(ChangeLoggedModel, CustomFieldModel):
help_text='Hostname or FQDN (not case-sensitive)' help_text='Hostname or FQDN (not case-sensitive)'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
custom_field_values = GenericRelation( custom_field_values = GenericRelation(
@ -898,7 +898,7 @@ class VLAN(ChangeLoggedModel, CustomFieldModel):
null=True null=True
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
custom_field_values = GenericRelation( custom_field_values = GenericRelation(
@ -1010,7 +1010,7 @@ class Service(ChangeLoggedModel, CustomFieldModel):
verbose_name='IP addresses' verbose_name='IP addresses'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )
custom_field_values = GenericRelation( custom_field_values = GenericRelation(

View File

@ -254,7 +254,7 @@ class SecretRole(ChangeLoggedModel):
unique=True unique=True
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True, blank=True,
) )
users = models.ManyToManyField( users = models.ManyToManyField(

View File

@ -86,9 +86,8 @@ class Tenant(ChangeLoggedModel, CustomFieldModel):
null=True null=True
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True, blank=True
help_text='Long-form name (optional)'
) )
comments = models.TextField( comments = models.TextField(
blank=True blank=True

View File

@ -39,7 +39,7 @@ class Token(models.Model):
help_text='Permit create/update/delete operations using this key' help_text='Permit create/update/delete operations using this key'
) )
description = models.CharField( description = models.CharField(
max_length=100, max_length=200,
blank=True blank=True
) )