Allow overriding the default avatar image

(imported from commit 66d413682a822e0019f28033f19908bdd9fa0156)
This commit is contained in:
Kevin Mehall
2013-11-18 10:58:39 -05:00
parent 3a4b576135
commit b78fa0857f
3 changed files with 7 additions and 1 deletions

View File

@@ -40,4 +40,4 @@ def get_avatar_url(avatar_source, email):
hash_key = gravatar_hash(email)
return "https://secure.gravatar.com/avatar/%s?d=identicon" % (hash_key,)
else:
return '/static/images/default-avatar.png?x=x'
return settings.DEFAULT_AVATAR_URI+'?x=x'