Releases: jazzband/django-model-utils
Releases · jazzband/django-model-utils
5.0.0
This release includes the efforts of @mthuurne in the field of typing. I’d like to extend my sincere thanks to him and all the other contributors for their valuable efforts to make this release possible!
What's Changed
- Minor cleanup of the code handling
UrlsafeTokenField
'sfactory
argument by @mthuurne in #607 - Modernize the way some keyword-only arguments are implemented by @mthuurne in #606
- Forward additional arguments to
contribute_to_class()
to Django by @mthuurne in #605 - Modernize property definitions in
SplitText
by @mthuurne in #604 - Levels variable is never set by @foarsitter in #590
MonitorField
- Change default to None when the field is nullable by @gmcrocetti in #599- Enable static type checks using mypy in CI by @mthuurne in #601
- Remove excerpt field workaround for South FakeORM by @mthuurne in #610
- Fix
SoftDeletableModel.delete()
forwarding positional args to superclass by @mthuurne in #611 - Auto-generate manager implementation for
CustomSoftDelete
by @mthuurne in #612 - Remove
JoinQueryset.get_quoted_query()
by @mthuurne in #618 - Deprecate
JoinManager
andJoinManagerMixin
by @mthuurne in #615 - Update README.rst by @mattseymour in #617
- Remove support for assigning
None
to aSplitField
by @mthuurne in #614 - Remove catching of
AttributeError
inDescriptorWrapper
by @mthuurne in #624 - [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #623
- Add type annotations by @mthuurne in #603
- [pre-commit.ci] pre-commit autoupdate by @pre-commit-ci in #625
- Add formal support for django 5.1 by @foarsitter in #626
- chore: Replicate Django's signature at SoftDelete queryset by @gmcrocetti in #622
- Release 5.0.0 by @foarsitter in #627
New Contributors
- @mattseymour made their first contribution in #617
Full Changelog: 4.5.0...5.0.0
v5.0b0
Beta release for testing the type hints
4.5.1
What's Changed
Full Changelog: 4.5.0...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