atexio / mercure

Mercure is a tool for security managers who want to train their colleague to phishing.
https://hub.docker.com/r/atexio/mercure/
GNU General Public License v3.0
267 stars 56 forks source link

Update django-model-utils to 4.1.0 #389

Closed pyup-bot closed 3 years ago

pyup-bot commented 3 years ago

This PR updates django-model-utils from 3.1.2 to 4.1.0.

Changelog ### 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 after `refresh_from_db` - `FieldTracker` now respects `update_fields` changed in overridden `save()` 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` ``` ### 4.0.0 ``` ------------------ - Added `Choices.subset`. - Remove hacks for previously supported Django versions. (Fixes GH-390) - Dropped support for Python 2.7. (Fixes GH-393) - Dropped usage of `six` - Drop support for `Django 1.11` - Add support for `Python 3.8` - Add support for `Django 3.0` ``` ### 3.2.0 ``` ------------------- - Catch `AttributeError` for deferred abstract fields, fixes GH-331. - Update documentation to explain usage of `timeframed` model manager, fixes GH-118 - Honor `OneToOneField.parent_link=False`. - Fix handling of deferred attributes on Django 1.10+, fixes GH-278 - Fix `FieldTracker.has_changed()` and `FieldTracker.previous()` to return correct responses for deferred fields. - Add Simplified Chinese translations. - Update AutoLastModifiedField so that at instance creation it will always be set equal to created to make querying easier. Fixes GH-254 - Support `reversed` for all kinds of `Choices` objects, fixes GH-309 - Fix Model instance non picklable GH-330 - Fix patched `save` in FieldTracker - Upgrades test requirements (pytest, pytest-django, pytest-cov) and skips tox test with Python 3.5 and Django (trunk) - Add UUIDModel and UUIDField support. ```
Links - PyPI: https://pypi.org/project/django-model-utils - Changelog: https://pyup.io/changelogs/django-model-utils/ - Repo: https://github.com/jazzband/django-model-utils
pyup-bot commented 3 years ago

Closing this in favor of #391