modified: src/netbox_plugin_bind_provisioner/management/commands/bind-transfer-endpoint.py modified: src/netbox_plugin_bind_provisioner/migrations/0001_initial.py modified: src/netbox_plugin_bind_provisioner/models.py Run code through black formater and bump version string to v1.0.0
52 lines
1.5 KiB
Python
52 lines
1.5 KiB
Python
# Generated by Django 5.2.8 on 2025-11-23 14:36
|
|
|
|
import netbox.models.deletion
|
|
import taggit.managers
|
|
import utilities.json
|
|
from django.db import migrations, models
|
|
|
|
|
|
class Migration(migrations.Migration):
|
|
|
|
initial = True
|
|
|
|
dependencies = [
|
|
("extras", "0133_make_cf_minmax_decimal"),
|
|
]
|
|
|
|
operations = [
|
|
migrations.CreateModel(
|
|
name="IntegerKeyValueSetting",
|
|
fields=[
|
|
(
|
|
"id",
|
|
models.BigAutoField(
|
|
auto_created=True, primary_key=True, serialize=False
|
|
),
|
|
),
|
|
("created", models.DateTimeField(auto_now_add=True, null=True)),
|
|
("last_updated", models.DateTimeField(auto_now=True, null=True)),
|
|
(
|
|
"custom_field_data",
|
|
models.JSONField(
|
|
blank=True,
|
|
default=dict,
|
|
encoder=utilities.json.CustomFieldJSONEncoder,
|
|
),
|
|
),
|
|
("key", models.CharField(max_length=64)),
|
|
("value", models.IntegerField()),
|
|
(
|
|
"tags",
|
|
taggit.managers.TaggableManager(
|
|
through="extras.TaggedItem", to="extras.Tag"
|
|
),
|
|
),
|
|
],
|
|
options={
|
|
"abstract": False,
|
|
},
|
|
bases=(netbox.models.deletion.DeleteMixin, models.Model),
|
|
),
|
|
]
|