We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 143e745 commit 7222f98Copy full SHA for 7222f98
netbox_custom_objects/models.py
@@ -235,7 +235,7 @@ def clean(self):
235
# Enforce max number of COTs that may be created (max_custom_object_types)
236
if not self.pk:
237
max_cots = get_plugin_config("netbox_custom_objects", "max_custom_object_types")
238
- if max_cots and CustomObjectType.objects.count() > max_cots:
+ if max_cots and CustomObjectType.objects.count() >= max_cots:
239
raise ValidationError(_(
240
f"Maximum number of Custom Object Types ({max_cots}) "
241
"exceeded; adjust max_custom_object_types to raise this limit"
0 commit comments