Django Money Versions Save

Money fields for Django forms and models.

2.0.1

2 years ago

Fixed

  • Invalid deprecation warning behavior. #624 (@nerdoc)

2.0

2 years ago

Added

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

Changed

  • BREAKING: Update py-moneyed to >=1.2,<2. It uses babel to format Money, which formats it differently than py-moneyed<1. #567 (@antonagestam)

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

3 years ago

Fixed

  • Do not mutate the input moneyed.Money class to djmoney.money.Money in MoneyField.default and F-expressions. #603 (@moser)

1.3

3 years ago

Added

  • Improved localization: New setting CURRENCY_DECIMAL_PLACES_DISPLAY configures decimal places to display for each configured currency. #521 (@wearebasti)

Changed

  • Set the default value for models.fields.MoneyField to NOT_PROVIDED. (@tned73)

Fixed

  • Pin pymoneyed<1.0 as it changed the repr output of the Money class. (@Stranger6667)
  • Subtracting Money from moneyed.Money. Regression, introduced in 1.2. #593 (@Stranger6667)
  • Missing the right Money.decimal_places and Money.decimal_places_display values after some arithmetic operations. #595 (@Stranger6667)

1.2.2

3 years ago

Fixed

  • Confusing "number-over-money" division behavior by backporting changes from py-moneyed. #586 @wearebasti
  • AttributeError when a Money instance is divided by Money. #585 @niklasb

1.2.1

3 years ago

Fixed

  • Aggregation through a proxy model. #583 (@tned73)

1.2

3 years ago

Added

  • Django 3.1 support.

Fixed

  • Resulting Money object from arithmetics (add / sub / ...) inherits maximum decimal_places from arguments. #522 (@wearebasti)
  • DeprecationWarning related to the usage of cafile in urlopen. #553 @Stranger6667

1.1

3 years ago

Fixed

  • Optimize money operations on MoneyField instances with the same currencies. #541 @horpto

Added

  • Support for Money type in QuerySet.bulk_update() #534 @satels

1.0

4 years ago

Added

  • Support for money descriptor customization. (@Stranger6667)
  • Fix order_by() not returning money-compatible queryset #519 (@lieryan)
  • Django 3.0 support

Removed

  • Support for Django 1.8 & 2.0. (@Stranger6667)
  • Support for Python 2.7. #515 (@benjaoming)
  • Support for Python 3.4. (@Stranger6667)
  • MoneyPatched, use djmoney.money.Money instead. (@Stranger6667)

Fixed

  • Support instances with decimal_places=0 #509 (@fara)