From 35f4aeafd8398fe12fc4b63cb185d2a0bc26ad2e Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Fri, 2 Oct 2015 14:58:03 +0000 Subject: [PATCH] Tweaked the error message for 2 submission form validation errors. - Legacy-Id: 10128 --- ietf/submit/forms.py | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/ietf/submit/forms.py b/ietf/submit/forms.py index b51ba24aa..abf0716fe 100644 --- a/ietf/submit/forms.py +++ b/ietf/submit/forms.py @@ -206,10 +206,20 @@ class SubmissionUploadForm(forms.Form): txt_file.seek(0) if not self.filename: - raise forms.ValidationError("Could not extract a valid draft name from the upload") + raise forms.ValidationError("Could not extract a valid draft name from the upload" + "To fix this in a text upload, please make sure that the full draft name including " + "revision number appears centered on its own line below the document title on the " + "first page. In an xml upload, please make sure that the top-level " + "element has a docName attribute which provides the full draft name including " + "revision number.") if not self.revision: - raise forms.ValidationError("Could not extract a valid draft revision from the upload") + raise forms.ValidationError("Could not extract a valid draft revision from the upload. " + "To fix this in a text upload, please make sure that the full draft name including " + "revision number appears centered on its own line below the document title on the " + "first page. In an xml upload, please make sure that the top-level " + "element has a docName attribute which provides the full draft name including " + "revision number.") if not self.title: raise forms.ValidationError("Could not extract a valid title from the upload")