diff --git a/shynet/dashboard/templatetags/helpers.py b/shynet/dashboard/templatetags/helpers.py index 19a0689..418f971 100644 --- a/shynet/dashboard/templatetags/helpers.py +++ b/shynet/dashboard/templatetags/helpers.py @@ -84,8 +84,8 @@ def percent_change_display(start, end): @register.inclusion_tag("dashboard/includes/sidebar_footer.html") def sidebar_footer(): - return {"version": "" if settings.SHOW_SHYNET_VERSION - else settings.VERSION} + return {"version": settings.VERSION if settings.SHOW_SHYNET_VERSION + else ""} @register.inclusion_tag("dashboard/includes/stat_comparison.html")