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:
19
netbox/ipam/migrations/0052_unique_asn.py
Normal file
19
netbox/ipam/migrations/0052_unique_asn.py
Normal 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),
|
||||
),
|
||||
]
|
@ -74,6 +74,7 @@ class RIR(OrganizationalModel):
|
||||
class ASN(PrimaryModel):
|
||||
|
||||
asn = ASNField(
|
||||
unique=True,
|
||||
blank=True,
|
||||
null=True,
|
||||
verbose_name='ASN',
|
||||
|
Reference in New Issue
Block a user