---------------------
NB! If you are using custom model managers **not** named ``objects`` and you expect them to still work, please read below.
**Added**
- Support for ``Value`` and ``Func`` expressions in queries. (:github-user:`Stranger6667`)
- Support for ``in`` lookup. (:github-user:`Stranger6667`)
- Django REST Framework support. :github-issue:`179` (:github-user:`Stranger6667`)
- Django 1.10 support. :github-issue:`198` (:github-user:`Stranger6667`)
- Improved South support. (:github-user:`Stranger6667`)
**Changed**
- Changed auto conversion of currencies using djmoney_rates (added in 0.7.3) to
be off by default. You must now add ``AUTO_CONVERT_MONEY = True`` in
your ``settings.py`` if you want this feature. :github-issue:`199` (:github-user:`spookylukey`)
- Only make ``objects`` a MoneyManager instance automatically. :github-issue:`194` and :github-issue:`201` (:github-user:`inureyes`)
**Fixed**
- Fixed default currency value for nullable fields in forms. :github-issue:`138` (:github-user:`Stranger6667`)
- Fixed ``_has_changed`` deprecation warnings. :github-issue:`206` (:github-user:`Stranger6667`)
- Fixed ``get_or_create`` crash, when ``defaults`` is passed. :github-issue:`213` (:github-user:`Stranger6667`, :github-user:`spookylukey`)
Note about automatic model manager patches
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In 0.8, Django-money automatically patches every model managers with
``MoneyManager``. This causes migration problems if two or more managers are
used in the same model.
As a side effect, other managers are also finally wrapped with ``MoneyManager``.
This effect leads Django migration to point to fields with other managers to
``MoneyManager``, and raises ``ValueError`` (``MoneyManager`` only exists as a
return of ``money_manager``, not a class-form. However migration procedure tries
to find ``MoneyManager`` to patch other managers.)
From 0.9, Django-money only patches ``objects`` with ``MoneyManager`` by default
(as documented). To patch other managers (e.g. custom managers), patch them by
wrapping with ``money_manager``.
.. code-block:: python
from djmoney.models.managers import money_manager
class BankAccount(models.Model):
balance = MoneyField(max_digits=10, decimal_places=2, default_currency='USD')
accounts = money_manager(MyCustomManager())