Задать вопрос

Тел: +7 965 3737 888

421

Просмотров

0

Ответов

Gravatar support in model save override

Overridden save() method that adds Gravatar support for a user with a profile photo field (and presumably an email field). Checks to see if user has provided a photo. If not, then query Gravatar for a possible photo. Finally, if Gravatar does not have an appropriate photo for this user, then use whatever default photo is available (in this case, 'users/photos/default_profile_photo.png'... change as necessary).

Вопрос полезен? Да0/Нет0
file_3911.py(2.7Кб)
None