Verified Commit 6a153719 authored by Sli's avatar Sli
Browse files

com: fix 500 error when utbm mail server refuse weekmail

parent d82679e3
Pipeline #2150 passed with stage
in 47 minutes and 5 seconds
......@@ -449,7 +449,7 @@ class WeekmailPreviewView(ComTabsMixin, CanEditPropMixin, DetailView):
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()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment