From 6a153719f9e7cdb8143f5e107256fcbc4b3eb335 Mon Sep 17 00:00:00 2001 From: Bartuccio Antoine Date: Mon, 25 Nov 2019 13:30:47 +0100 Subject: [PATCH] com: fix 500 error when utbm mail server refuse weekmail --- com/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com/views.py b/com/views.py index 78f248a8..27d15008 100644 --- a/com/views.py +++ b/com/views.py @@ -449,7 +449,7 @@ class WeekmailPreviewView(ComTabsMixin, CanEditPropMixin, DetailView): ) except: pass - return super(WeekmailEditView, self).get(request, *args, **kwargs) + return super(WeekmailPreviewView, self).get(request, *args, **kwargs) def get_object(self, queryset=None): return self.model.objects.filter(sent=False).order_by("-id").first()