Skip to content

Commit 9c705b3

Browse files
committed
fixup! fix(bulk-import): lookup custom object via slug
1 parent 234abb9 commit 9c705b3

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Generated by Django 5.2.7 on 2025-10-20 13:24
2+
3+
import django.db.models.functions.text
4+
from django.db import migrations, models
5+
6+
7+
class Migration(migrations.Migration):
8+
9+
dependencies = [
10+
('core', '0019_configrevision_active'),
11+
('extras', '0133_make_cf_minmax_decimal'),
12+
('netbox_custom_objects', '0001_initial'),
13+
]
14+
15+
operations = [
16+
migrations.AddConstraint(
17+
model_name='customobjecttype',
18+
constraint=models.UniqueConstraint(django.db.models.functions.text.Lower('slug'), name='netbox_custom_objects_customobjecttype_slug', violation_error_message='A Custom Object Type with this slug already exists.'),
19+
),
20+
]

0 commit comments

Comments
 (0)