Commit graph

824 commits

Author SHA1 Message Date
Enrique Matías Sánchez (Quique)
c6ce8fea25 Add Spanish translation 2020-03-29 11:31:31 +02: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
H. Buğra Aydın
b0a6b78c80 added explanation for the new feature
i forgot to change changes file to explain the feature below, updating accordingly:

3e32ae257b
2020-03-02 16:46:09 +06:00
Martín Raúl Villalba
6fba04ec4f Satisfy deprecation warning under Django 3.0.3 2020-03-01 08:55:31 +06:00
H. Buğra Aydın
3e32ae257b Overriding TimeStampedModel's save() method (#412)
* Overriding TimeStampedModel's save() method

to update modified field automatically when update_fields argument is used but modified was not given as a parameter.

* fixed a small error in logic

* added tests for new functionality
2020-01-23 13:19:06 +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
Sergey Tikhonov
d756a4a8ce patch Model.refresh_from_db in FieldTracker (#403)
* patch Model.refresh_from_db in FieldTracker

* add info about refresh_from_db patching to CHANGES.rst
2019-12-15 20:28:15 +06:00
Simon Charette
dd0d1bb01a
There's no 3.3.0 release. 2019-12-11 10:06:03 -05:00
Rémy HUBSCHER
35ba2bde31
Back to development 4.0.1 2019-12-11 15:48:26 +01:00
Rémy HUBSCHER
8af8cf269c
Prepare 4.0.0 release. 2019-12-11 15:47:18 +01:00
Misha K
5aa40c66be Add django 3.0 to the test matrix and drop six (#395)
*  - add django 3.0 to the test matrix
 - drop six

* add entry in CHANGES

* remove context kwarg

* fix test with DeferredAttribute

* rename StringyDescriptor's name to attname

* Fix flake8

* Drop support for Django 1.11 because the API are not compatibles anymore with Django 3.0

* Try to fix tests.

* Define model for the field mock.

* Simplifies the code.

* Properly mock the field.

* Typo

* Use the new API field name.

* Call it attname

* Grab the field instance from the model.

* Use postgres in travis tests.

* Django 2.0.1 minimum is needed.

* Update Changelog to tell about breaking Django 1.11.

* Update changelog to tell about Django 3.0 support.

* @natim review.
2019-12-09 19:37:16 +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
c9c04da1b2
Merge pull request #390 from jazzband/remove-unsupported-django-version-hacks
Remove unsupported django version hacks.
2019-08-21 16:59:24 +06:00
Rémy HUBSCHER
c19ea5b04f
Add changelog. 2019-08-21 11:19:13 +02:00
Rémy HUBSCHER
e6c7b567d1
Remove unsupported django version hacks. 2019-08-21 11:02:23 +02: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
Asif Saif Uddin
d901b233d3
Merge pull request #387 from jazzband/instance-of
Add ability to filter an InheritanceQuerySet by model.
2019-08-20 23:45:02 +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
d51368cdc3
Merge pull request #381 from Atorich/fix_tests
Fix tests
2019-08-20 15:42:45 +02:00
Rémy HUBSCHER
cfbea2ca89
Merge pull request #388 from jazzband/bugfix/issue_109
Implemented ability to lie about modified fields
2019-08-20 15:40:41 +02:00
Eugene
7d9ebc1b49
Skip AbstractModelTrackerTests
https://github.com/jazzband/django-model-utils/pull/381
2019-08-20 19:00:25 +07:00
Rémy HUBSCHER
1878537f25
Merge branch 'master' into bugfix/issue_109 2019-08-20 13:46:07 +02:00
Rémy HUBSCHER
976c17024e
Merge branch 'master' into instance-of 2019-08-20 12:50:09 +02:00
Rémy HUBSCHER
4e84b6d7bd
Improve Makefile to handle VENV creation if needed. 2019-08-20 12:09:51 +02:00
Asif Saif Uddin
d3534d656d
Merge pull request #384 from Asday/subset
Added `Choices().subset()`.
2019-08-20 05:02:47 +06:00
asday
488be3ff01 Updated documentation and bumped minor version. 2019-08-19 23:02:43 +01:00
Asif Saif Uddin
1c2992476f
Merge pull request #383 from Asday/flake8
Fixed flake8 issues.
2019-08-20 03:54:10 +06:00
asday
1142254f62 not x in y => x not in y. 2019-08-19 22:38:30 +01:00
asday
d9aa34e498 Fixed spacing.
Extraneous whitespace, too many blank lines, and too few blank
lines.
2019-08-19 22:38:05 +01:00
asday
51a720386c Moved a binary operator to the start of a line. 2019-08-19 22:37:16 +01:00
asday
b7483fa538 Removed an unused import. 2019-08-19 22:37:01 +01:00
asday
383740e8ab Added Choices().subset(). 2019-08-19 22:33:08 +01:00
Eugene Kuznetsov
23148f481c fix test case 2019-08-05 18:45:48 +07:00
Eugene Kuznetsov
a3bada7e54 fix test case 2019-08-05 18:44:46 +07:00
Simon Charette
d3d0881de0
Merge pull request #373 from jazzband/release-3.2.0
Release 3.2.0.
2019-06-21 11:31:44 -04:00
Simon Charette
08e84eff69
Release 3.2.0. 2019-06-21 11:18:00 -04:00
Asif Saif Uddin
2bc7c47157
Merge pull request #285 from ebsaral/feature/disable-model-save-signals
Feature/disable model save signals
2019-05-21 00:55:10 +06:00
Emin Bugra Saral
f5d4e5ce2b Update changes and authors 2019-05-20 19:45:51 +02:00
Emin Bugra Saral
5d6f8f4e9f Disable signals on save feature 2019-05-20 19:35:05 +02:00
Emin Bugra Saral
b7d953d8bb Add requirement for running tests 2019-05-20 19:32:02 +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
Asif Saif Uddin
77bbdb12fc
updated dependencies 2019-05-16 05:42:33 +06:00
Asif Saif Uddin
e04ef1d9ba
adjust setup 2019-05-16 05:30:03 +06:00
Asif Saif Uddin
5d73431e0d
xenial 2019-05-16 05:27:36 +06:00
Asif Saif Uddin
a2f46f74d7
update supported versions 2019-05-16 05:25:55 +06:00
Asif Saif Uddin
98b7f18047
django 1.11 n 2.1+ only 2019-05-16 05:24:49 +06:00
Asif Saif Uddin
3c6bd237af
drop py34 add py37 2019-05-16 05:22:00 +06:00
Asif Saif Uddin
9eb118ee9e
Merge pull request #369 from jcushman/patch-save-fix
Move patch_save to finalize_class so it works on models with save() methods
2019-05-10 00:41:33 +06:00