1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

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

@@ -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