-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
'group' required on create API call in tenant #15995
Comments
I'm not able to reproduce this on v4.0.0:
I can't think of anything that would cause this. Do you have any custom validation rules enabled for tenants by chance? |
This is a fresh install (netbox-docker) and I'm just trying to populate it with some data (so no validation rules). I get the same error by using the Swagger interface, as well as trying against demo.netbox.dev:
|
Could it maybe be fixed with something like this bfc1cab ? |
Ok, turns out I was mistakenly running and older version of DRF (from working on another bug) when I attempted to reproduce it. Sorry for the confusion. Can confirm this is a bug. Funny that it works fine under DRF 3.14. |
Adding |
In case it was not obvious, a workaround for this is to include |
Confirmed that it's the uniqueness constraints on the Tenant model causing this. It's probably related to this change in DRF v3.15. |
I've identified the same issue affecting the following model fields:
|
… to be omitted from REST API requests
… to be omitted from REST API requests
Deployment Type
Self-hosted
NetBox Version
v4.0.0
Python Version
3.10
Steps to Reproduce
Expected Behavior
Tenant to be created
Observed Behavior
The text was updated successfully, but these errors were encountered: