mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
18 lines
494 B
Python
18 lines
494 B
Python
|
# Generated by Django 4.2.5 on 2023-09-15 14:20
|
||
|
|
||
|
from django.db import migrations, models
|
||
|
|
||
|
|
||
|
class Migration(migrations.Migration):
|
||
|
|
||
|
dependencies = [
|
||
|
('dcim', '0181_rename_device_role_device_role'),
|
||
|
]
|
||
|
|
||
|
operations = [
|
||
|
migrations.AddConstraint(
|
||
|
model_name='inventoryitem',
|
||
|
constraint=models.UniqueConstraint(condition=models.Q(('parent__isnull', True)), fields=('device', 'name'), name='dcim_inventoryitem_unique_device_name'),
|
||
|
),
|
||
|
]
|