mirror of
https://github.com/netbox-community/netbox.git
synced 2026-01-10 22:02:17 -06:00
Closes #166: Add dns_name to IPAddress
This commit is contained in:
19
netbox/ipam/migrations/0027_ipaddress_add_dns_name.py
Normal file
19
netbox/ipam/migrations/0027_ipaddress_add_dns_name.py
Normal file
@@ -0,0 +1,19 @@
|
||||
# Generated by Django 2.2 on 2019-04-22 21:43
|
||||
|
||||
import django.core.validators
|
||||
from django.db import migrations, models
|
||||
|
||||
|
||||
class Migration(migrations.Migration):
|
||||
|
||||
dependencies = [
|
||||
('ipam', '0026_prefix_ordering_vrf_nulls_first'),
|
||||
]
|
||||
|
||||
operations = [
|
||||
migrations.AddField(
|
||||
model_name='ipaddress',
|
||||
name='dns_name',
|
||||
field=models.CharField(blank=True, max_length=255, validators=[django.core.validators.RegexValidator(code='invalid', message='Only alphanumeric characters, hyphens, and periods are allowed in DNS names', regex='^[0-9A-Za-z\\.-]+$')]),
|
||||
),
|
||||
]
|
||||
Reference in New Issue
Block a user