From 71a24737b4d84c41a01fa095b7222d0a6f839f47 Mon Sep 17 00:00:00 2001 From: Oliver Falk Date: Thu, 16 Sep 2021 10:50:29 +0200 Subject: [PATCH] Do not use 404 in case no default is set - we need to redir to the default Gravatar --- ivatar/views.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ivatar/views.py b/ivatar/views.py index ce158cc..f74b224 100644 --- a/ivatar/views.py +++ b/ivatar/views.py @@ -196,8 +196,6 @@ class AvatarImageView(TemplateView): # Ensure we do not convert None to string 'None' if default: url += "&default=%s" % default - else: - url += "&default=404" return HttpResponseRedirect(url) # Return the default URL, as specified, or 404 Not Found, if default=404