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:
@@ -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')),
|
||||
|
@@ -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',
|
||||
|
Reference in New Issue
Block a user