Skip to content

Commit

Permalink
fixes for #10070 make l2vpn slug unique (#10119)
Browse files Browse the repository at this point in the history
Co-authored-by: jeremystretch <[email protected]>
  • Loading branch information
arthanson and jeremystretch authored Aug 24, 2022
1 parent f70ef7a commit 4132027
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
18 changes: 18 additions & 0 deletions netbox/ipam/migrations/0060_alter_l2vpn_slug.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Generated by Django 4.0.7 on 2022-08-22 15:58

from django.db import migrations, models


class Migration(migrations.Migration):

dependencies = [
('ipam', '0059_l2vpn'),
]

operations = [
migrations.AlterField(
model_name='l2vpn',
name='slug',
field=models.SlugField(max_length=100, unique=True),
),
]
5 changes: 4 additions & 1 deletion netbox/ipam/models/l2vpn.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@ class L2VPN(NetBoxModel):
max_length=100,
unique=True
)
slug = models.SlugField()
slug = models.SlugField(
max_length=100,
unique=True
)
type = models.CharField(
max_length=50,
choices=L2VPNTypeChoices
Expand Down

0 comments on commit 4132027

Please sign in to comment.