From efce3f14b7a5c87156f04a7a6f90662b4aa38a36 Mon Sep 17 00:00:00 2001 From: eric Date: Mon, 30 Jul 2018 12:56:12 -0400 Subject: [PATCH] add better error message --- frontend/templates/edition_upload.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/templates/edition_upload.html b/frontend/templates/edition_upload.html index 812accc3..c5582ce0 100644 --- a/frontend/templates/edition_upload.html +++ b/frontend/templates/edition_upload.html @@ -23,7 +23,7 @@ {% csrf_token %} {{ ebook_form.edition.errors }}{{ ebook_form.edition }}{{ ebook_form.user.errors }}{{ ebook_form.user }}{{ ebook_form.provider.errors }}{{ ebook_form.provider }}
- {{ ebook_form.url.errors }}Add a Link URL: {{ ebook_form.url }}
+ {{ ebook_form.url.errors }}{{ ebook_form.non_field_errors }}Add a Link URL: {{ ebook_form.url }}
or...
{{ ebook_form.file.errors }}Upload an ebook file: {{ ebook_form.file }}

{{ ebook_form.format.errors }}File Format: {{ ebook_form.format }}