Django-money

Latest version: v3.5.2

Safety actively analyzes 629052 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 12

3.2

-------------------

**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

-------------------

**Added**

- Python 3.11 support :github-issue:`700` (:github-user:`sdarmofal`)
- Django 4.2 support :github-issue:`700` (:github-user:`sdarmofal`)
- Pyright support for .pyi files :github-issue:`686` (:github-user:`karolyi`)
- Support for ``Coalesce`` :github-issue:`678` (:github-user:`stianjensen`)

**Fixed**

- Support for ``Money`` type with ``Coalesce`` in ``QuerySet.update()`` :github-issue:`678` (:github-user:`stianjensen`)
- pre-commit config for moved flake8 repo (:github-user:`sdarmofal`)
- Use latest setup-python GitHub Action :github-issue:`692` (:github-user:`sondrelg`)
- Optimize: Rate is always 1 if source and target are equal :github-issue:`689` (:github-user:`nschlemm`)
- Fixer.io backend: Avoid 403 errors :github-issue:`681` (:github-user:`spaut33`)

3.0

--------------------

**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**

- Improve the internal check for whether a currency is provided :github-issue:`657` (:github-user:`davidszotten`)
- Fix test suite for django main branch :github-issue:`657` (:github-user:`davidszotten`)
- ``MoneyField`` raises ``TypeError`` when default contains a valid amount but no currence, i.e. ``Money(123, None)``. :github-issue:`661` (:github-user:`flaeppe`)
- ``MoneyField`` supports default of type ``bytes`` :github-issue:`661` (:github-user:`flaeppe`)

**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

---------------------

**Changed**

- Renamed ``master`` branch to ``main`` (:github-user:`benjaoming`)

**Fixed**

- Make Django REST Framework integration always raise lower-level errors as ``ValidationError``. :github-issue:`601`, :github-issue:`637` (:github-user:`flaeppe`)
- False positives in Migration changes, improvements to ``MoneyField.deconstruct``. :github-issue:`646`, :github-issue:`648` (:github-user:`flaeppe`)

2.1

-------------------

**Added**

- Add support for Django 3.2. :github-issue:`612` (:github-user:`antonagestam`)

**Removed**

- Drop support for Django 1.11, 2.1 and 3.0. :github-issue:`612` (:github-user:`antonagestam`)
- Drop support for Python 3.5. :github-issue:`612` (:github-user:`antonagestam`)

2.0.3

---------------------

**Fixed**

- Inconsistent ``Money._copy_attributes`` behaviour when non-``Money`` instances are involved. :github-issue:`630` (:github-user:`tned73`)

Page 2 of 12

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.