1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Closes #10032: Remove unique constraint from L2VPN identifier

This commit is contained in:
jeremystretch
2022-08-17 10:47:42 -04:00
parent e523006ec3
commit 93b36ed580
3 changed files with 7 additions and 7 deletions

View File

@@ -1,5 +1,3 @@
# Generated by Django 4.0.5 on 2022-07-06 16:51
import django.core.serializers.json
from django.db import migrations, models
import django.db.models.deletion
@@ -26,7 +24,7 @@ class Migration(migrations.Migration):
('name', models.CharField(max_length=100, unique=True)),
('slug', models.SlugField()),
('type', models.CharField(max_length=50)),
('identifier', models.BigIntegerField(blank=True, null=True, unique=True)),
('identifier', models.BigIntegerField(blank=True, null=True)),
('description', models.CharField(blank=True, max_length=200)),
('export_targets', models.ManyToManyField(blank=True, related_name='exporting_l2vpns', to='ipam.routetarget')),
('import_targets', models.ManyToManyField(blank=True, related_name='importing_l2vpns', to='ipam.routetarget')),

View File

@@ -15,11 +15,13 @@ class L2VPN(NetBoxModel):
unique=True
)
slug = models.SlugField()
type = models.CharField(max_length=50, choices=L2VPNTypeChoices)
type = models.CharField(
max_length=50,
choices=L2VPNTypeChoices
)
identifier = models.BigIntegerField(
null=True,
blank=True,
unique=True
blank=True
)
import_targets = models.ManyToManyField(
to='ipam.RouteTarget',