File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11# Configuration Parameters
22
3- ## ` max_cots `
3+ ## ` max_custom_object_types `
44
55Default: None
66
Original file line number Diff line number Diff line change @@ -219,11 +219,14 @@ def __str__(self):
219219 def clean (self ):
220220 super ().clean ()
221221
222- # Enforce max number of COTs that may be created (max_cots )
222+ # Enforce max number of COTs that may be created (max_custom_object_types )
223223 if not self .pk :
224- max_cots = get_plugin_config ("netbox_custom_objects" , "max_cots " )
224+ max_cots = get_plugin_config ("netbox_custom_objects" , "max_custom_object_types " )
225225 if max_cots and CustomObjectType .objects .count () > max_cots :
226- raise ValidationError (_ (f"Maximum number of Custom Object Types ({ max_cots } ) exceeded" ))
226+ raise ValidationError (_ (
227+ f"Maximum number of Custom Object Types ({ max_cots } ) "
228+ "exceeded; adjust max_custom_object_types to raise this limit"
229+ ))
227230
228231 @classmethod
229232 def clear_model_cache (cls , custom_object_type_id = None ):
You can’t perform that action at this time.
0 commit comments