django-model-utils/model_utils
Sergey Tikhonov 79a7793dc5
#491 Context manager for resetting fields (#494)
* Add tracker context manager and decorator

* Handle auto-field warning in tests

* Use tracker context in monkey-patched methods

* Test delaying set_saved_fields call with context manager

* Docs for tracker context

* Describe FieldsContext context manager in changes

* Fix unused import

* #494 add breaking changes note on 4.1.1 release for #404

* #494 fix typo

* #494 add docstring for FieldsContext

* #494 move breaking changes from 4.1.1 to 4.1.0

* #494 fix typo and add some more docstrings
2021-10-08 15:09:20 +06:00
..
locale Add farsi translation. 2020-09-23 09:29:26 +06:00
__init__.py Used isort to sort imports (#460) 2020-11-29 20:58:00 +00:00
choices.py Modernize Python syntax, add Python 3.8 (#398) 2019-11-14 22:50:04 +06:00
fields.py Added deconstruct 2021-04-30 21:40:39 +05:00
managers.py Used isort to sort imports (#460) 2020-11-29 20:58:00 +00:00
models.py Fix TypeError in save when model inherits from both TimeStampModel and StatusModel. (Fixes GH-465) 2020-12-02 00:07:22 +01:00
tracker.py #491 Context manager for resetting fields (#494) 2021-10-08 15:09:20 +06:00