From 90f15b8d55e8de7747d7b3c18fbda895a08a0eda Mon Sep 17 00:00:00 2001 From: jeremystretch Date: Mon, 21 Nov 2022 09:49:30 -0500 Subject: [PATCH] Fixes #10938: render_field template tag should respect label kwarg --- docs/release-notes/version-3.3.md | 1 + .../templates/form_helpers/render_field.html | 16 ++++++++-------- netbox/utilities/templatetags/form_helpers.py | 2 +- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/docs/release-notes/version-3.3.md b/docs/release-notes/version-3.3.md index a6dbdef19..5f8856a69 100644 --- a/docs/release-notes/version-3.3.md +++ b/docs/release-notes/version-3.3.md @@ -14,6 +14,7 @@ * [#10236](https://github.com/netbox-community/netbox/issues/10236) - Fix TypeError exception when viewing PDU configured for three-phase power * [#10579](https://github.com/netbox-community/netbox/issues/10579) - Mark cable traces terminating to a provider network as complete * [#10721](https://github.com/netbox-community/netbox/issues/10721) - Disable ordering by custom object field columns +* [#10938](https://github.com/netbox-community/netbox/issues/10938) - `render_field` template tag should respect `label` kwarg * [#10969](https://github.com/netbox-community/netbox/issues/10969) - Update cable paths ending at associated rear port when creating new front ports --- diff --git a/netbox/utilities/templates/form_helpers/render_field.html b/netbox/utilities/templates/form_helpers/render_field.html index 9f3779bfe..4c6c46ef0 100644 --- a/netbox/utilities/templates/form_helpers/render_field.html +++ b/netbox/utilities/templates/form_helpers/render_field.html @@ -8,7 +8,7 @@
{{ field }}
{% if field.help_text %} @@ -23,7 +23,7 @@ -{% elif field|widget_type == 'textarea' and not field.label %} +{% elif field|widget_type == 'textarea' and not label %}
{% if label %}