-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Custom fields on more models #3083
Comments
Custom fields are only supported on primary models for performance reasons. The FAQ offers more context on this. |
Would it perhaps meaningful to use a JSONField (PostgreSQL's jsonb) instead for those cases? It would allow for reading these without extra queries (and thus show up in the listing), as well as searches in them. On the flip side I suppose it would make validation and multiple-choices fields more difficult. I came across this task while looking on how to add a couple of our custom fields (e.g. ticket number) to inventory items like Juniper linecards. |
Environment
Proposed Functionality
Allow custom fields to be added to:
Use Case
On dcim_devicerole: add contact details for responsible team
On dcim_inventoryitem: add purchase date, warranty expiry, usage (e.g. OS disk / data disk), capacity, form factor (2.5"/3.5")
Database Changes
None that I can see:
extras_customfield
can link to anydjango_content_type
.External Dependencies
None
The text was updated successfully, but these errors were encountered: