From 1c710e71a526e256365bf1427bfb90ea02b63a1e Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Fri, 26 Apr 2019 23:00:48 +1000 Subject: [PATCH] Modal forms now display non-field errors - Critical for errors not relating to a particular field (e.g. unique_together) - Ref: https://stackoverflow.com/questions/7419535/how-to-render-django-form-errors-not-in-a-ul --- InvenTree/templates/modal_form.html | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/InvenTree/templates/modal_form.html b/InvenTree/templates/modal_form.html index 44fd4c70f8..1318e4f238 100644 --- a/InvenTree/templates/modal_form.html +++ b/InvenTree/templates/modal_form.html @@ -1,5 +1,14 @@ +{% if form.non_field_errors %} + +{% endif %} +
{% csrf_token %} {% load crispy_forms_tags %} + + {% crispy form %}
\ No newline at end of file