com: fix 500 error when utbm mail server refuse weekmail

This commit is contained in:
Antoine Bartuccio 2019-11-25 13:30:47 +01:00
parent d82679e3d7
commit 6a153719f9
Signed by: klmp200
GPG Key ID: E7245548C53F904B

View File

@ -449,7 +449,7 @@ class WeekmailPreviewView(ComTabsMixin, CanEditPropMixin, DetailView):
) )
except: except:
pass pass
return super(WeekmailEditView, self).get(request, *args, **kwargs) return super(WeekmailPreviewView, self).get(request, *args, **kwargs)
def get_object(self, queryset=None): def get_object(self, queryset=None):
return self.model.objects.filter(sent=False).order_by("-id").first() return self.model.objects.filter(sent=False).order_by("-id").first()