From 7752ef837f57fe0eb7ef58f54b9469e0b86e009e Mon Sep 17 00:00:00 2001 From: Simon Oliver Tveit Date: Mon, 30 Sep 2024 14:01:57 +0200 Subject: [PATCH] Remove crispy from html template --- python/nav/web/templates/threshold/set_threshold.html | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/python/nav/web/templates/threshold/set_threshold.html b/python/nav/web/templates/threshold/set_threshold.html index 62059bcf8a..d10a619c03 100644 --- a/python/nav/web/templates/threshold/set_threshold.html +++ b/python/nav/web/templates/threshold/set_threshold.html @@ -1,5 +1,4 @@ {% extends "base.html" %} -{% load crispy_forms_tags %} {% block base_header_additional_head %} @@ -21,7 +20,11 @@

{{ heading }}

data-url="{% url 'threshold-search' %}" data-renderurl="{% url 'threshold-graph' %}" data-metric="{{ metric|default_if_none:'' }}"> - {% crispy form %} + {% if form.attrs %} + {% include 'custom_crispy_templates/flat_form.html' %} + {% else %} + {{ form }} + {% endif %} {% if id %} Delete