Added description to Tenant model

This commit is contained in:
Jeremy Stretch
2016-07-26 17:44:32 -04:00
parent faa12abc70
commit 27c21237ff
5 changed files with 41 additions and 4 deletions

View File

@@ -26,9 +26,10 @@ class Tenant(CreatedUpdatedModel):
A Tenant represents an organization served by the NetBox owner. This is typically a customer or an internal
department.
"""
name = models.CharField(max_length=50, unique=True)
name = models.CharField(max_length=30, unique=True)
slug = models.SlugField(unique=True)
group = models.ForeignKey('TenantGroup', related_name='tenants', on_delete=models.PROTECT)
description = models.CharField(max_length=100, blank=True, help_text="Long-form name (optional)")
comments = models.TextField(blank=True)
class Meta: