Skip to content

Latest commit

 

History

History
907 lines (595 loc) · 35.1 KB

changes.rst

File metadata and controls

907 lines (595 loc) · 35.1 KB

Changelog

3.5.2 - 2024-05-07

Fixed

3.5.1 - 2024-05-05

Fixed

3.5 - 2024-05-04

Important

If you generated MoneyField migrations in the previous series 3.4.x, you may have to manually edit subsequent migrations. Please share your successful approaches in :github-issue:`731`.

Fixed

Added

Removed

3.4.1 - 2023-11-30

Fixed

3.4 - 2023-10-17

Note

If you are using Django REST Framework or any other mechanism that relies on a custom serializer, please note that you now manually have to register the serializer. See :ref:`this code snippet <index:Note on serialization>`.

Changed

3.3 - 2023-09-10

Fixed

3.2 - 2023-07-03

Changed

  • Explicitly define id in djmoney.contrib.exchange.Rate model - This ensures that the database table will use AutoField even if DEFAULT_AUTO_FIELD is set to BigAutoField in the Django project's settings #716

Fixed

  • Downgrade asgiref to 3.6 to work with pypy3

3.1 - 2023-04-20

Added

Fixed

3.0 - 2022-06-20

Changed - Update py-moneyed to 2.0. :github-issue:`638` (:github-user:`antonagestam`, :github-user:`flaeppe`, :github-user:`paoloxnet`) - Remove the deprecated Money.decimal_places_display property and argument. :github-issue:`638` (:github-user:`antonagestam`, :github-user:`flaeppe`, :github-user:`paoloxnet`) - Remove the deprecated CURRENCY_DECIMAL_PLACES_DISPLAY setting. :github-issue:`638` (:github-user:`antonagestam`, :github-user:`flaeppe`, :github-user:`paoloxnet`) - Null constraint on an implicit CurrencyField is now declared from null=... argument to MoneyField. :github-issue:`638` (:github-user:`antonagestam`, :github-user:`flaeppe`, :github-user:`paoloxnet`)

Fixed

Added

  • Add support for Django 4.0 and 4.1.
  • Add support for Python 3.10.

Removed

  • Drop support for Django 3.1.
  • Drop support for Python 3.6.

2.1.1 - 2022-01-02

Changed

Fixed

2.1 - 2021-09-17

Added

Removed

2.0.3 - 2021-09-04

Fixed

2.0.2 - 2021-09-04

Fixed

2.0.1 - 2021-07-09

Fixed

2.0 - 2021-05-23

Added

  • New setting CURRENCY_CODE_MAX_LENGTH configures default max_length for MoneyField and exchange app models.

Changed

Deprecated

  • Money.decimal_places_display will be removed in django-money 3.0.
  • CURRENCY_DECIMAL_PLACES_DISPLAY will be removed in django-money 3.0.

1.3.1 - 2021-02-04

Fixed

1.3 - 2021-01-10

Added

Changed

Fixed

1.2.2 - 2020-12-29

Fixed

1.2.1 - 2020-11-29

Fixed

1.2 - 2020-11-26

Fixed

Added

  • Django 3.1 support

1.1 - 2020-04-06

Fixed

Added

1.0 - 2019-11-08

Added

Removed

Fixed

0.15.1 - 2019-06-22

Fixed

0.15 - 2019-05-30

Warning

This release contains backwards incompatibility, please read the release notes below.

Backwards incompatible changes

Added

Fixed

Changed

0.14.4 - 2019-01-07

Changed

Fixed

0.14.3 - 2018-08-14

Fixed

0.14.2 - 2018-07-23

Fixed

0.14.1 - 2018-07-17

Added

Fixed

0.14 - 2018-06-09

Added

Fixed

Removed

0.13.5 - 2018-05-19

Fixed

0.13.4 - 2018-05-19

Fixed

0.13.3 - 2018-05-12

Added

0.13.2 - 2018-04-16

Added

Fixed

0.13.1 - 2018-04-07

Fixed

0.13 - 2018-04-07

Added

Removed

Migration from django-money-rates

The new application is a drop-in replacement for django-money-rates. To migrate from django-money-rates:

  • In INSTALLED_APPS replace djmoney_rates with djmoney.contrib.exchange
  • Set OPEN_EXCHANGE_RATES_APP_ID setting with your app id
  • Run python manage.py migrate
  • Run python manage.py update_rates

For more information, look at Working with Exchange Rates section in README.

0.12.3 - 2017-12-13

Fixed

0.12.2 - 2017-12-12

Fixed

Changed

0.12.1 - 2017-11-20

Fixed

0.12 - 2017-10-22

Added

Changed

Deprecated

  • djmoney.models.fields.MoneyPatched and moneyed.Money are deprecated. Use djmoney.money.Money instead.

Fixed

Removed

0.11.4 - 2017-06-26

Fixed

0.11.3 - 2017-06-19

Fixed

0.11.2 - 2017-05-31

Fixed

0.11.1 - 2017-05-26

Fixed

Removed

0.11 - 2017-05-19

Added

Fixed

0.10.2 - 2017-02-18

Added

Fixed

0.10.1 - 2016-12-26

Fixed

0.10 - 2016-12-19

Changed

Fixed

0.9.1 - 2016-08-01

Fixed

  • Fixed packaging.

0.9.0 - 2016-07-31

NB! If you are using custom model managers not named objects and you expect them to still work, please read below.

Added

Changed

Fixed

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.

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())

0.8 - 2016-04-23

Added

Changed

Fixed

0.7.6 - 2016-01-08

Added

Fixed

0.7.5 - 2015-12-22

Fixed

0.7.4 - 2015-11-02

Added

Fixed

0.7.3 - 2015-10-16

Added

Fixed

0.7.2 - 2015-09-01

Fixed

0.7.1 - 2015-08-11

Fixed

0.7.0 - 2015-06-14

Added

0.6.0 - 2015-05-23

Added

Changed

Fixed

0.5.0 - 2014-12-15

Added

Fixed

0.4.2 - 2014-07-31

0.4.1 - 2013-11-28

0.4.0.0 - 2013-11-26

Added

  • Python 3 compatibility.
  • tox tests.
  • Format localization.
  • Template tag money_localize.

0.3.4 - 2013-11-25

0.3.3.2 - 2013-10-31

0.3.3.1 - 2013-10-01

0.3.3 - 2013-02-17

Added

Fixed

0.3.2 - 2012-11-30

Fixed

0.3.1 - 2012-10-11

Fixed

0.3 - 2012-09-30

Added

0.2 - 2012-04-10

  • Initial public release

# .. _3.5: https:///github.com/django-money/django-money/compare/3.5...HEAD