Fix use of explicit default=mm in params

This commit is contained in:
Oliver Falk
2018-10-10 10:10:22 +02:00
parent 1de1257a42
commit 5557aa4bbf

View File

@@ -90,6 +90,10 @@ class AvatarImageView(TemplateView):
return HttpResponse(
data,
content_type='image/png')
if str(default) == 'mm':
# If mm is explicitly given, we need to catch that
pass
else:
return HttpResponseRedirect(default)
static_img = path.join('static', 'img', 'mm', '%s%s' % (str(size), '.png'))