Adds comments field to abstract NestedGroupModel and associated migrations

Models affected:
- dcim: `Location`, `Region`, `SiteGroup`
- tenancy`: `ContactGroup`, `TenantGroup`
- wireless: `WirelessLANGroup`
This commit is contained in:
Jason Novinger 2025-03-10 11:52:13 -05:00
parent 26e02ada30
commit ae7a47ca60
4 changed files with 73 additions and 0 deletions

View File

@ -0,0 +1,28 @@
# Generated by Django 5.1.7 on 2025-03-10 16:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('dcim', '0201_add_power_outlet_status'),
]
operations = [
migrations.AddField(
model_name='location',
name='comments',
field=models.TextField(blank=True),
),
migrations.AddField(
model_name='region',
name='comments',
field=models.TextField(blank=True),
),
migrations.AddField(
model_name='sitegroup',
name='comments',
field=models.TextField(blank=True),
),
]

View File

@ -150,6 +150,10 @@ class NestedGroupModel(NetBoxFeatureSet, MPTTModel):
max_length=200, max_length=200,
blank=True blank=True
) )
comments = models.TextField(
verbose_name=_('comments'),
blank=True
)
objects = TreeManager() objects = TreeManager()

View File

@ -0,0 +1,23 @@
# Generated by Django 5.1.7 on 2025-03-10 16:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('tenancy', '0017_natural_ordering'),
]
operations = [
migrations.AddField(
model_name='contactgroup',
name='comments',
field=models.TextField(blank=True),
),
migrations.AddField(
model_name='tenantgroup',
name='comments',
field=models.TextField(blank=True),
),
]

View File

@ -0,0 +1,18 @@
# Generated by Django 5.1.7 on 2025-03-10 16:37
from django.db import migrations, models
class Migration(migrations.Migration):
dependencies = [
('wireless', '0013_natural_ordering'),
]
operations = [
migrations.AddField(
model_name='wirelesslangroup',
name='comments',
field=models.TextField(blank=True),
),
]