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

#6732 - ASN should be unique

This commit is contained in:
Daniel Sheppard
2021-10-28 10:04:12 -05:00
parent 9b5f45aee1
commit 96565c31d9
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,19 @@
# Generated by Django 3.2.8 on 2021-10-28 15:03
import dcim.fields
from django.db import migrations
class Migration(migrations.Migration):
dependencies = [
('ipam', '0051_asn_model'),
]
operations = [
migrations.AlterField(
model_name='asn',
name='asn',
field=dcim.fields.ASNField(blank=True, null=True, unique=True),
),
]

View File

@ -74,6 +74,7 @@ class RIR(OrganizationalModel):
class ASN(PrimaryModel):
asn = ASNField(
unique=True,
blank=True,
null=True,
verbose_name='ASN',