mirror of
https://git.linux-kernel.at/oliver/ivatar.git
synced 2025-11-17 21:48:02 +00:00
Fix use of explicit default=mm in params
This commit is contained in:
@@ -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'))
|
||||
|
||||
Reference in New Issue
Block a user