From d2f94a8c4861242b99de58964de42643fadedea5 Mon Sep 17 00:00:00 2001 From: Jorran Wit <jorrandewit@outlook.com> Date: Wed, 21 Dec 2016 23:51:04 +0100 Subject: [PATCH] Remove unwanted raise --- commentaries/forms.py | 2 -- commentaries/models.py | 1 - 2 files changed, 3 deletions(-) diff --git a/commentaries/forms.py b/commentaries/forms.py index 7cbccf60a..f0dcdf3a3 100644 --- a/commentaries/forms.py +++ b/commentaries/forms.py @@ -69,8 +69,6 @@ class RequestCommentaryForm(forms.ModelForm): self.existing_commentary = get_object_or_404( Commentary, arxiv_identifier=cleaned_data['arxiv_identifier']) - if not self.existing_commentary: - raise self.add_error('arxiv_identifier', msg) elif (cleaned_data['pub_DOI'] and Commentary.objects.filter(pub_DOI=cleaned_data['pub_DOI']).exists()): diff --git a/commentaries/models.py b/commentaries/models.py index a42005b4d..903ed6469 100644 --- a/commentaries/models.py +++ b/commentaries/models.py @@ -20,7 +20,6 @@ class CommentaryManager(models.Manager): def awaiting_vetting(self, **kwargs): return self.filter(vetted=False, **kwargs) - class Commentary(TimeStampedModel): """ A Commentary contains all the contents of a SciPost Commentary page for a given publication. -- GitLab