diff --git a/apps/map/views.py b/apps/map/views.py index 0f5741d..764fd7f 100644 --- a/apps/map/views.py +++ b/apps/map/views.py @@ -79,9 +79,11 @@ class BaseForm(LoginRequiredMixin, CreateView): self.send_email() # Delete the corresponding draft - draft = CaseStudyDraft.objects.get(author=self.request.user) - if draft: + try: + draft = CaseStudyDraft.objects.get(author=self.request.user) draft.delete() + except CaseStudyDraft.DoesNotExist: + pass return super().form_valid(form)