Commit ad8bcc72 authored by Sli's avatar Sli
Browse files

Merge branch 'bugfix' into 'master'

com: fix 500 error when utbm mail server refuse weekmail

See merge request !260
parents 22a44415 6a153719
Pipeline #2152 passed with stage
in 31 minutes and 53 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