Skip to content

Commit f63dcb1

Browse files
committed
#7091: Simplify access to BASE_PATH variable
1 parent a33e477 commit f63dcb1

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

netbox/templates/base/base.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<html
66
lang="en"
77
data-netbox-path="{{ request.path }}"
8-
data-netbox-base-path="{% base_path %}"
8+
data-netbox-base-path="{{ settings.BASE_PATH }}"
99
{% if preferences|get_key:'ui.colormode' == 'dark'%}
1010
data-netbox-color-mode="dark"
1111
{% else %}

netbox/utilities/templatetags/helpers.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -355,14 +355,6 @@ def querystring(request, **kwargs):
355355
return ''
356356

357357

358-
@register.simple_tag()
359-
def base_path():
360-
"""
361-
Access `BASE_PATH` in templates.
362-
"""
363-
return settings.BASE_PATH
364-
365-
366358
@register.inclusion_tag('utilities/templatetags/utilization_graph.html')
367359
def utilization_graph(utilization, warning_threshold=75, danger_threshold=90):
368360
"""

0 commit comments

Comments
 (0)