From 3f646d6f71247e005496e10df8050ea330a72a4e Mon Sep 17 00:00:00 2001 From: Grant McConnaughey Date: Sat, 27 May 2017 09:43:23 -0500 Subject: [PATCH] Update changelog for 4.0.0 --- CHANGELOG.rst | 6 ++++++ docs/index.txt | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f644c01..7cdef78 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,6 +1,12 @@ Changelog ========= +* 4.0.0 (May 27, 2017) + * **Backwards incompatible:** Added ``AVATAR_PROVIDERS`` setting. Avatar providers are classes that return an avatar URL for a given user. + * Added ``verbose_name`` to ``Avatar`` model fields. + * Improved German translations. + * Fixed bug where ``rebuild_avatars`` would fail on Django 1.10+. + * 3.1.0 (September 10, 2016) * Added the ability to override templates using ``AVATAR_ADD_TEMPLATE``, ``AVATAR_CHANGE_TEMPLATE``, and ``AVATAR_DELETE_TEMPLATE``. * Added the ability to pass additional HTML attributes using the ``{% avatar %}`` template tag. diff --git a/docs/index.txt b/docs/index.txt index c054913..2049c08 100644 --- a/docs/index.txt +++ b/docs/index.txt @@ -164,8 +164,8 @@ appear on the site. Listed below are those settings: .. py:data:: AVATAR_PROVIDERS - Tuple of classes that are tried in the given order for returning avatar - URLs. + Tuple of classes that are tried in the given order for returning avatar + URLs. Defaults to:: ( @@ -175,9 +175,9 @@ appear on the site. Listed below are those settings: ) If you want to implement your own provider, it must provide a class method - ``get_avatar_url(user, size)``. + ``get_avatar_url(user, size)``. - .. py:class:: avatar.providers.GravatarAvatarProvider + .. py:class:: avatar.providers.PrimaryAvatarProvider Returns the primary avatar stored for the given user.