Skip to content

Commit d2c9d4b

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

File tree

2 files changed

+0
-27
lines changed

2 files changed

+0
-27
lines changed

netbox_custom_objects/migrations/0002_customobjecttype_netbox_custom_objects_customobjecttype_slug.py

Lines changed: 0 additions & 20 deletions
This file was deleted.

netbox_custom_objects/models.py

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,6 @@ class Meta:
209209
"A Custom Object Type with this name already exists."
210210
),
211211
),
212-
models.UniqueConstraint(
213-
Lower("slug"),
214-
name="%(app_label)s_%(class)s_slug",
215-
violation_error_message=_(
216-
"A Custom Object Type with this slug already exists."
217-
),
218-
),
219212
]
220213

221214
def __str__(self):

0 commit comments

Comments
 (0)