Add tenant group and tenant assignments across the model, forms, filters, API, tables, imports, and tests. Replace the Docker-based setup with Git/Pip installation documentation for NetBox 4.6.5.
35 lines
1008 B
Python
35 lines
1008 B
Python
from django.db import migrations, models
|
|
import django.db.models.deletion
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
dependencies = [
|
|
("tenancy", "0001_initial"),
|
|
("netbox_slm", "0010_softwarelicense_spdx_expression"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.AddField(
|
|
model_name="softwarelicense",
|
|
name="tenant_group",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
related_name="software_licenses",
|
|
to="tenancy.tenantgroup",
|
|
),
|
|
),
|
|
migrations.AddField(
|
|
model_name="softwarelicense",
|
|
name="tenant",
|
|
field=models.ForeignKey(
|
|
blank=True,
|
|
null=True,
|
|
on_delete=django.db.models.deletion.PROTECT,
|
|
related_name="software_licenses",
|
|
to="tenancy.tenant",
|
|
),
|
|
),
|
|
]
|