From 2f6802953079dbf930e408dd08b34ad444782bbf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Emilio=20A=2E=20S=C3=A1nchez=20L=C3=B3pez?= Date: Wed, 9 Feb 2011 20:13:14 +0000 Subject: [PATCH] Do not allow 00 revisions if we are in first cut off. Fixes #580 - Legacy-Id: 2838 --- ietf/submit/forms.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ietf/submit/forms.py b/ietf/submit/forms.py index 097cab676..712834e1c 100644 --- a/ietf/submit/forms.py +++ b/ietf/submit/forms.py @@ -129,6 +129,8 @@ class UploadForm(forms.Form): self.get_draft() self.group=self.get_working_group() self.check_previous_submission() + if self.draft.revision == '00' and self.in_first_cut_off: + raise forms.ValidationError(mark_safe(self.cutoff_warning)) self.check_tresholds() return super(UploadForm, self).clean()