forked from jazzband/django-model-utils
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
jazzband#491 Context manager for resetting fields (jazzband#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 * jazzband#494 add breaking changes note on 4.1.1 release for jazzband#404 * jazzband#494 fix typo * jazzband#494 add docstring for FieldsContext * jazzband#494 move breaking changes from 4.1.1 to 4.1.0 * jazzband#494 fix typo and add some more docstrings
- Loading branch information
Showing
5 changed files
with
254 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters