Releases: jazzband/django-model-utils
Releases · jazzband/django-model-utils
4.5.1
v4.5.0
What's Changed
- Don't use
post_init
signal for initialize tracker by @meanmail in #556 - clarify docs for managers of SoftDeletableModel by @tadamcz in #589
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #575
Language Support
- Add translations for Brazilian Portuguese by @gmcrocetti in #578- Remove dead
init_deferred_fields
method by @joecox in #580 - Update where
ConnectionDoesNotExist
is imported from by @mthuurne in #566 - Remove arguments from
InheritanceQuerySetMixin._clone()
by @mthuurne in #567 - Allow running tests using sqlite by @jayvdb in #516
MonitorField
- Change default to None when the field is nullable by @gmcrocetti in #577- Explicitly re-export names from
__init__
module by @mthuurne in #591 - Switch from freezegun to time-machine. by @adamchainz in #510
- USE_TZ = True by @foarsitter in #593
- Remove redundant definition of
JoinManager
from tests by @mthuurne in #594 - Pass reason to
@skip
decorator by @mthuurne in #595 - Resolve name clash among test models by @mthuurne in #596
- Remove obsolete
tests.signals
module by @mthuurne in #597 - Remove obsolete test models by @mthuurne in #598
- Postgresql docker container for local development by @foarsitter in #563
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #602
- Add issue-manager by @foarsitter in #600
- Translation files by @foarsitter in #608
New Contributors
- @meanmail made their first contribution in #556
- @tadamcz made their first contribution in #589
- @gmcrocetti made their first contribution in #578
- @joecox made their first contribution in #580
Full Changelog: 4.4.0...4.5.0
4.4.0 (2024-02-10)
What's Changed
- Add support for Python 3.11 (#545)
- Add support for Python 3.12 (#545)
- Add support for Django 4.2 (#562)
- Add support for Django 5.0 (#583)
- Remove SaveSignalHandlingModel. This model used a modified copy of the internal Django method Model.save_base() and had not been updated for upstream bug fixes changes since its addition. (#582)
- Drop support for Python 3.7 (#545)
- Swedish translation (#561)
- Use proper column name instead of attname (#573)
- Fix ValueError when calling prefetch_related for tracked ForeignKey fields (Fixes #433)
Full Changelog: 4.3.1...4.4.0
4.3.1 (2022-11-15)
4.2.0
4.1.1
4.1.0
- Update InheritanceQuerySetMixin to avoid querying too much tables
- TimeStampedModel now automatically adds 'modified' field as an update_fields
parameter even if it is forgotten while using save() FieldTracker
now marks fields as not changed afterrefresh_from_db
FieldTracker
now respectsupdate_fields
changed in overriddensave()
method- Replace ugettext_lazy with gettext_lazy to satisfy Django deprecation warning
- Add available_objects manager to SoftDeletableModel and add deprecation
warning to objects manager. - StatusModel now automatically adds 'status_changed' field during save as an
update_fieldsparameter when 'status' is present in it to make sure it is not
forgotten. - Update test requirements
- Move tests to GitHub Actions: https://github.com/jazzband/django-model-utils/actions
- Drop support for
Django 2.1
- Add support for
Python 3.9
- Add support for
Django 3.1