Update changelog for 4.0.0

This commit is contained in:
Grant McConnaughey 2017-05-27 09:43:23 -05:00
parent 57707e481e
commit 3f646d6f71
2 changed files with 10 additions and 4 deletions

View file

@ -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.

View file

@ -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.