Require that a Tenant is selected when adding/editing an object #8387
Replies: 4 comments 5 replies
-
I'm not sure what you mean by "Config Revision", but have you looked at Custom Validators? https://netbox.readthedocs.io/en/stable/customization/custom-validation/ If you're having a problem with this, then please show your complete Note that |
Beta Was this translation helpful? Give feedback.
-
I'm trying to use the dynamic way as stated in the documentation using the Config Revision in the Admin section: |
Beta Was this translation helpful? Give feedback.
-
This is JSON data (not Python), so you need to use the value |
Beta Was this translation helpful? Give feedback.
-
All, looking back at this, I feel documentation needs to be somewhat adjusted. From an user perspective, things are out of order. Specifying object model should come before attributes. It was not really clear. Or I'm stupid:-) This said, how do I contribute to make documentation better? I'm happy to do so. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Is there a way of enforcing that you always have to assign a tenant on an object using the Config Revision?
Tried some variants with o success. An example:
'''
{'tenant': {'required': 'True'}}
'''
Beta Was this translation helpful? Give feedback.
All reactions