Commit graph

753 commits

Author SHA1 Message Date
JMP
5c49f2c7d0 Update changes.rst for UUIDModel and UUIDField 2019-02-26 18:41:23 +01:00
JMP
da3c59a6df Fix SyntaxError for python 2.7 2019-02-26 18:38:39 +01:00
JMP
8d9a00b89b Fix pep8 error 2019-02-26 18:16:01 +01:00
jmmp
9b6f14bedd
Update models.rst 2019-02-26 18:12:06 +01:00
JMP
132d375d99 Merge branch 'master' of github.com:marfyl/django-model-utils 2019-02-26 18:10:50 +01:00
JMP
a6fc51c0b5 Docs updated 2019-02-26 18:10:42 +01:00
jmmp
000c70de9e
Update fields.rst 2019-02-26 18:04:13 +01:00
JMP
2f29dce4de Merge branch 'feature/uuid_model' 2019-02-26 18:01:26 +01:00
JMP
0d4facbb53 Merge branch 'feature/uuid_model' of github.com:marfyl/django-model-utils into feature/uuid_model 2019-02-26 18:01:20 +01:00
jmmp
e5955f780b
Update fields.py 2019-02-26 17:58:20 +01:00
JMP
2f142afd37 Fix imports pep8 2019-02-26 17:55:02 +01:00
JMP
015dd4831f Catch error with inherit class 2019-02-26 17:50:32 +01:00
JMP
430866abfa Update authors file 2019-02-26 17:37:24 +01:00
JMP
533501753f UUID version custom exception 2019-02-26 17:36:59 +01:00
JMP
c23c622d17 UUIDModel tests 2019-02-26 17:36:35 +01:00
JMP
58e57d5535 UUIDField tests 2019-02-26 17:36:23 +01:00
JMP
5ff0867bf9 UUIDModels for testing purposes 2019-02-26 17:35:50 +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
JMP
ca75294883 UUID field added 2019-02-26 17:33:06 +01:00
JMP
38f8932e74 UUID model added 2019-02-26 17:32:56 +01:00
Diego Navarro
4e18710537 Upgrades pytest, pytest-django and pytest-cov version to fix travis build (#358)
* Upgrades pytest, pytest-django and pytest-cov version

* Skips testing Python 3.5 with django trunk (Django 2.1 requires Python 3.6)
2019-02-22 00:05:35 +06:00
Reece Dunham
f8f2ef340f
Merge pull request #310 from Germano0/master
Removed missing include files in MANIFEST.in
2019-01-11 13:13:59 -05:00
Reece Dunham
52ba20e005
Merge pull request #354 from jazzband/revert-280-patch-2
Revert "Add missing classifiers in setup.py"
2019-01-11 10:09:43 -05:00
Reece Dunham
c1bcd67971
Revert "Add missing classifiers in setup.py" 2019-01-11 10:09:34 -05:00
Reece Dunham
3be02d3001
Update AUTHORS.rst 2019-01-11 10:04:43 -05:00
Reece Dunham
1c7947b5e2
Merge branch 'master' into master 2019-01-11 10:03:50 -05:00
Reece Dunham
b377d5f47e
Merge pull request #344 from ZachCheung/master
add Simplified Chinese translations
2019-01-11 07:53:19 -05:00
Zach Cheung
af1824e200 fix conflict 2019-01-11 17:26:06 +08:00
Reece Dunham
73dd5aa8fd
Merge branch 'master' into master 2019-01-10 15:47:22 -05:00
Reece Dunham
6069dd8c84
Merge pull request #280 from ad-m/patch-2
Add missing classifiers in setup.py
2019-01-10 15:43:13 -05:00
Reece Dunham
cb03b1fa88
Merge branch 'master' into patch-2 2019-01-10 15:42:58 -05:00
Reece Dunham
3bf67aa4d9
Merge pull request #276 from ar7n/master
Russian locale added
2019-01-10 15:41:22 -05:00
Reece Dunham
6325951970
Merge pull request #325 from illagrenan/master
Add Czech (cs) translations
2019-01-10 15:40:55 -05:00
Reece Dunham
4d9df911b3
Update year. 2019-01-10 15:38:56 -05:00
Sergey Tikhonov
6b88c888d3 fix model.save patched in FieldTracker (#353)
* fix model.save patched in FieldTracker

* add test for save call with args

* update changes
2018-12-10 21:35:26 +06:00
Daniel Andrlik
25743141bc Ensure TimeStampedModel modified equals created on initial creation. (#319)
*  Ensure TimeStampedModel modified equals created on initial creation.

Add logic to AutoLastModifiedField which checks to see if the associated created field of the correct cField class type is also present. If the instance has not yet been saved (missing a pk), then set the value to modified to be equal to created.

Fixes #247

📚 Update changes and authors list related to changes.

* 🚑 Set TimeStampedModel modified to be equal to created during first save.

If instance does not yet have a pk, before defaulting the last modified to the current time, iterate over the the fields of the model, and instead use whatever value is found in the first occurance of the AutoCreatedField.

Fixes #247

* Move changelog up to unreleased section.
2018-12-08 12:23:04 +06:00
Guilherme Devincenzi
b739f6fe87 Add default manager as all_objects for SoftDeletableModel (#326)
* Add default manager as all_objects for SoftDeletableModel

* Document changes on changelog
2018-12-08 11:50:10 +06:00
Éric Araujo
764b7ea78d Add support for reverse iteration of Choices (#314) 2018-12-08 11:47:54 +06:00
Sebastian Illing
326bd7bc02 Fix missing subclasses and annotated in cloned InheritanceQueryset (#335)
Bug only occurs in django > 2
2018-12-08 11:26:36 +06: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
08161456d5
Merge pull request #350 from tumb1er/patch_model_save
fix #330 patch MyModel.save instead of MyModel().save
2018-11-20 23:55:25 +06:00
tumb1er
ba83be0b43 fix #330 patch MyModel.save instead of MyModel().save 2018-11-20 18:32:09 +03:00
Asif Saif Uddin
05671695bb
update tag 2018-11-03 11:12:50 +06:00
Asif Saif Uddin
4c5c4b8bc4
Merge pull request #341 from thiras/master
Change supported version to 2.1 at README.rst (Fix #340)
2018-10-23 15:15:03 +06:00
Zach Cheung
300209007b add Simplified Chinese translations 2018-10-23 15:38:04 +08:00
Ant Somers
3efac688ed
Change supported version to 2.1 at README.rst 2018-10-05 02:43:52 +03:00
Asif Saif Uddin
4562da4e18
updated doc about supported python and django versions. 2018-09-24 19:39:33 +06:00
Asif Saif Uddin
e150d24f7a
Merge pull request #334 from rlmv/django-2.1
Add Django 2.1 to tox
2018-09-24 19:25:17 +06:00
Bo Marchman
df8ceed265 Add Django 2.1 to tox 2018-08-07 11:56:02 -04:00