mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Add a description field to all organizational models
This commit is contained in:
@ -34,8 +34,12 @@ class TenantGroup(MPTTModel, ChangeLoggedModel):
|
||||
null=True,
|
||||
db_index=True
|
||||
)
|
||||
description = models.CharField(
|
||||
max_length=200,
|
||||
blank=True
|
||||
)
|
||||
|
||||
csv_headers = ['name', 'slug', 'parent']
|
||||
csv_headers = ['name', 'slug', 'parent', 'description']
|
||||
|
||||
class Meta:
|
||||
ordering = ['name']
|
||||
@ -54,6 +58,7 @@ class TenantGroup(MPTTModel, ChangeLoggedModel):
|
||||
self.name,
|
||||
self.slug,
|
||||
self.parent.name if self.parent else '',
|
||||
self.description,
|
||||
)
|
||||
|
||||
def to_objectchange(self, action):
|
||||
|
Reference in New Issue
Block a user