django-avatar
django-avatar copied to clipboard
Fix gravatar fallback in render_primary view
Hi jezdez, I'm starting to use your great django app for avatar associations to users. I've found this little bug in the render_primary view that not permit gravatar fallback if the user has no avatar.
If you want to merge it into the master branch I think it could be useful.
Kind regards, Federico
I'm not following, what is this patch fixing?
Basically if the AVATAR_GRAVATAR_BACKUP is enabled and the user has no avatar associated the render_primary view not redirect to the gravatar of the user but redirect to the default application avatar. With this patch the render_primary view redirect to the gravatar url if the option is enabled.
@jezdez Are you still in the process of reviewing whether to include this?
AVATAR_GRAVATAR_BACKUP setting has been removed in https://github.com/jazzband/django-avatar/pull/137 .