Commit graph

64 commits

Author SHA1 Message Date
Hasan Ramezani
8723a0e34e Drop support for Python 3.6 2022-08-17 23:08:31 +02:00
Hasan Ramezani
b354d90c20 Drop support for Django < 3.2 2022-08-17 23:08:29 +02:00
Tim Gates
2dab8afded docs: Fix a few typos
There are small typos in:
- docs/managers.rst
- model_utils/managers.py
- tests/test_models/test_timestamped_model.py

Fixes:
- Should read `subclasses` rather than `subclasess`.
- Should read `queryset` rather than `querset`.
- Should read `permissible` rather than `permissable`.
- Should read `modified` rather than `modifed`.
- Should read `heterogeneous` rather than `heterogenous`.

Signed-off-by: Tim Gates <tim.gates@iress.com>
2022-08-17 22:37:49 +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
Nafees Anwar
a56d07cd68 Added urlsafe token field 2021-04-30 21:40:39 +05:00
Manish Kumar
57d26ee0cc Fixed a typo 2021-04-14 10:21:03 +06:00
Hasan Ramezani
c9cb248657 Add changelog to doc. 2021-04-08 14:50:11 +02:00
Hasan Ramezani
f713749fc4 Fix Django and Python supported version in setup doc. 2021-04-08 14:50:11 +02:00
Jannis Leidel
2cd07a9e89
Use setuptools_scm 2020-11-29 14:39:17 +01:00
Craig Anderson
b7a160936f Add available_objects soft deletable model manager. Emit deprecation warning when using objects soft deletable manager. 2020-08-25 16:40:09 +06:00
Trevor Watson
b7d0abccf4 Document current supported versions 2020-06-11 21:24:11 +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
Adam Dobrawy
ffa1a85dc7 Modernize Python syntax, add Python 3.8 (#398)
* Modernize Python syntax, add Python 3.8

* Update Python version & dist in TravisCI

* Add postgresql as addon

* Switch to psycopg2-binary

* Drop django.utils.six
2019-11-14 22:50:04 +06:00
Hasan Ramezani
aa94194dbc Drop Python 2 support. (#394) 2019-09-30 14:08:52 +06:00
Asif Saif Uddin
82dfed6a84
Merge pull request #386 from jazzband/improve-makefile
Improve Makefile to handle VENV creation if needed.
2019-08-21 01:10:42 +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
Rémy HUBSCHER
4e84b6d7bd
Improve Makefile to handle VENV creation if needed. 2019-08-20 12:09:51 +02:00
asday
488be3ff01 Updated documentation and bumped minor version. 2019-08-19 23:02:43 +01:00
Emin Bugra Saral
5d6f8f4e9f Disable signals on save feature 2019-05-20 19:35:05 +02:00
Asif Saif Uddin
25dde41418
Merge pull request #360 from marfyl/master
Add UUIDModel and UUIDField
2019-05-16 05:45:53 +06:00
Remy Suen
c4a252d1fb Explain usage of timeframed model manager in the documentation (#365)
* Provide a sample for using the timeframed manager

Signed-off-by: Remy Suen <remy.suen@gmail.com>

* Update CHANGES.rst file

Signed-off-by: Remy Suen <remy.suen@gmail.com>

* Update AUTHORS.rst file

Signed-off-by: Remy Suen <remy.suen@gmail.com>
2019-03-20 15:07:00 +06:00
jmmp
434bc6d45c
unneeded import removed 2019-02-27 14:33:48 +01:00
jmmp
9b6f14bedd
Update models.rst 2019-02-26 18:12:06 +01:00
JMP
a6fc51c0b5 Docs updated 2019-02-26 18:10:42 +01:00
JMP
bdc6fb05fe UUIDField doc 2019-02-26 17:35:00 +01:00
JMP
5bf7db036f UUIDModel doc 2019-02-26 17:34:20 +01:00
Jonathan Sundqvist
2cb773372d Add a JoinManager that helps with performance (#351)
* Add the join manager + tests

* Documentation for join manager

* Use order_by for consistent tests

* Use postgres instead sqlite for tests for better reliability

* Fix coverage

* Drop django 1.8
2018-11-25 20:18:23 +06:00
Asif Saif Uddin
4562da4e18
updated doc about supported python and django versions. 2018-09-24 19:39:33 +06:00
Lucas Wiman
2e92877910 Merge branch 'master' into django-1.11-compatibility 2018-07-02 11:21:48 -07:00
Harry Moreno
1197839765 Update docs to support django 2.0 2018-06-30 16:11:43 -07: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
Carl Meyer
198dcb612e Update github links for jazzband transfer. 2017-04-15 08:47:31 -07:00
romgar
7552c4a7f2 Remove out-to-date example 2017-01-26 14:18:19 +00:00
romgar
ced4afe8f9 Update documentation to remove references of PassThroughManager, removed in version 2.4 2017-01-22 12:00:50 +00:00
Ryan P Kilby
cd9e296f81 Update docs 2017-01-12 12:16:46 -05:00
Radosław Ganczarek
9e90dde2e8 Add SoftDeletableModel 2016-09-12 15:11:34 +02: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
Carl Meyer
9eeca10835 Update PassThroughManager docs to recommend alternatives; fixes GH-201. 2015-12-18 11:32:03 -07:00
Trey Hunner
8015b86237 Happy New Year! 2015-06-28 19:04:27 -07:00
Trey Hunner
6821051141 Note FieldTracker signal rules in documentation 2014-05-13 14:22:02 -07:00
Carl Meyer
a3c5bbf119 Fixed GH-125; add doc note about InheritanceQuerySetMixin. 2014-04-17 11:43:50 -06:00
Carl Meyer
07ea0d3a71 Minor docs cleanup. 2014-01-10 16:23:29 -07:00
Douglas Meehan
2082c7e3d5 edited typo 2014-01-10 17:09:01 -05:00
Douglas Meehan
2b089aee8d updated manager docs 2014-01-10 17:07:49 -05:00
Douglas Meehan
1cf5454ee8 added documentation about manager mixins 2014-01-10 22:01:46 +00:00