From 2aae2af55dea7205bbf5544d719517e8de3c96e3 Mon Sep 17 00:00:00 2001 From: James Polley Date: Sat, 23 Dec 2017 13:13:43 +1100 Subject: [PATCH] Disable client-side validation on credit_note forms * HTML5 browsers have some clevers to do client-side validation of forms * Django activates this by default for certain field types * However, in this case, there are three forms on this page. We rely on two of them being invalid in order to figure out what processing to do. * So we need to disable the client-side validation. --- pinaxcon/templates/registrasion/credit_note.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pinaxcon/templates/registrasion/credit_note.html b/pinaxcon/templates/registrasion/credit_note.html index 762740d1..1ddb9f4f 100644 --- a/pinaxcon/templates/registrasion/credit_note.html +++ b/pinaxcon/templates/registrasion/credit_note.html @@ -18,7 +18,7 @@

This credit note was generated from funds excess from invoice {{ credit_note.invoice.id }}.

{% if credit_note.is_unclaimed %} -
+ {% csrf_token %}

Apply to invoice

You can apply this credit note to an unpaid invoice.