From fcac7beb9f6156c506058db15087b4f87e89400d Mon Sep 17 00:00:00 2001 From: Jorran de Wit <jorrandewit@outlook.com> Date: Fri, 21 Dec 2018 09:20:03 +0100 Subject: [PATCH] Fix draft pub bug --- journals/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/journals/views.py b/journals/views.py index 44ae638f5..1ed0208f9 100644 --- a/journals/views.py +++ b/journals/views.py @@ -280,7 +280,7 @@ class DraftPublicationUpdateView(PermissionsMixin, UpdateView): try: publication = Publication.objects.get( accepted_submission__preprint__identifier_w_vn_nr=self.kwargs.get( - 'preprint__identifier_w_vn_nr')) + 'identifier_w_vn_nr')) except Publication.DoesNotExist: if Submission.objects.accepted().filter(preprint__identifier_w_vn_nr=self.kwargs.get( 'identifier_w_vn_nr')).exists(): -- GitLab