Fixes #12146: Do not display object selector for disabled fields

This commit is contained in:
jeremystretch 2023-04-03 09:39:03 -04:00
parent e966d1df47
commit f245f07fd9
2 changed files with 2 additions and 1 deletions

View File

@ -77,6 +77,7 @@ Two new webhook trigger events have been introduced: `job_start` and `job_end`.
* [#12109](https://github.com/netbox-community/netbox/issues/12109) - Fix migration error when replicating more than 100 job results
* [#12112](https://github.com/netbox-community/netbox/issues/12112) - Do not link data source URL for local paths
* [#12115](https://github.com/netbox-community/netbox/issues/12115) - Fix rendering config templates from a data file
* [#12146](https://github.com/netbox-community/netbox/issues/12146) - Do not display object selector for disabled fields
### Other Changes

View File

@ -1,4 +1,4 @@
{% if widget.attrs.selector %}
{% if widget.attrs.selector and not widget.attrs.disabled %}
<div class="d-flex">
{% include 'django/forms/widgets/select.html' %}
<button