Commit graph

20 commits

Author SHA1 Message Date
meanmail
5663374890 Don't use post_init signal for initialize tracker 2024-03-11 17:50:12 +01:00
mfgcb
f12701030b
Update utilities.rst
Fix typo FieldsTracker --> FieldTracker
2022-10-04 12:01:03 +02:00
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
Adam Johnson
d7e235603e Document Django 3.0 enumeration types
Could also consider deprecating, at least when minimum supported Django is 3.0.
2020-03-18 09:41:43 +06:00
Sergey Tikhonov
1386c379b7 FieldTracker should patch save_base instead of save (#404)
* add test for reproducing FieldTracker update_fields issue

FieldTracker does not see update_fields changed in tracked model.save() method

* Patch Model.save_base instead of save

This change allows proper capturing update_fields kwarg if is is changed in overridden save() method.

* Add some details about FieldTracker implementation

* Mention FieldTracker behavior change
2019-12-15 22:43:58 +06:00
Rémy HUBSCHER
54477b653c
Merge pull request #281 from georgemillard/patch-1
Update Docs - utilities.rst based on issue #195
2019-08-20 17:17:44 +02:00
georgemillard
39bd66d120
Added tracker field to the Child model definition 2019-08-20 16:01:15 +01:00
asday
488be3ff01 Updated documentation and bumped minor version. 2019-08-19 23:02:43 +01:00
Jack Cushman
d34043fd25 Avoid fetching deferred fields in has_changed 2018-02-10 10:53:36 -05:00
georgemillard
3c46995291 Update Docs - utilities.rst based on issue #195
Having encountered this issue a couple of times with FieldTrackers, I thought it would be good to go in the docs! Hope this helps.
2017-06-26 10:43:37 +01:00
Daniel Stanton
2827dbdb79 Reduced docs 2016-07-13 21:08:15 +01:00
Daniel Stanton
8e818d9bfa Removed colons 2016-07-13 17:59:08 +01:00
Daniel Stanton
98416539a5 Docs update: has_changed supports a single field
Closes #225
2016-07-13 17:57:13 +01:00
Trey Hunner
6821051141 Note FieldTracker signal rules in documentation 2014-05-13 14:22:02 -07:00
Carl Meyer
5a33ff760a Fixed indexing into Choices so its useful. 2013-09-24 15:13:27 -06:00
Tavistock
ff64b06c9d fixed code block
the code block was displaying incorrectly
2013-09-08 13:59:54 -04:00
Carl Meyer
2e44f1c2c0 Add option-groups capability to Choices. 2013-08-29 22:00:53 -06:00
Tony Aldridge
cac7416cda Moved documentation for Choices field to the right place 2013-08-24 10:40:53 +01:00
Trey Hunner
1bdf90be20 Add explicit references for cross-doc file links 2013-08-06 20:47:22 -07:00
Trey Hunner
85330bc106 Split usage docs into multiple files 2013-08-06 20:29:39 -07:00