Commit graph

735 commits

Author SHA1 Message Date
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
Skia
1b9b5ac2c1 managers: honor OneToOneField.parent_link=False (#363) 2019-03-12 23:29:02 +06:00
John Vandenberg
581522c46a MANIFEST.in: Add docs and tests (#362)
Also include all language translations in sdist.

Fixes https://github.com/jazzband/django-model-utils/issues/361 and closes https://github.com/jazzband/django-model-utils/issues/356
2019-03-11 13:51:59 +06: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
Lucas Wiman
bf1adce0b8
Merge pull request #329 from lucaswiman/fix-pep8-violations
Fix pep8 violations
2018-07-25 15:00:11 -07:00
Lucas Wiman
c53b19e50d Ignore 80 character line length restriction of pep8.
It seems like this hasn't been consistently followed in this codebase,
and the number of changes was fairly large.
2018-07-02 14:33:47 -07:00
Lucas Wiman
9189d60996 Fix remaining non-E501 line length changes.
The E402 module level import appears to be an error of some kind in flake8?
2018-07-02 13:01:49 -07:00
Lucas Wiman
0859508a64 Fix E123 closing bracket does not match indentation of opening bracket's line 2018-07-02 12:57:14 -07:00
Lucas Wiman
e23e86a2be Ignore W503 line break before binary operator
It doesn't seem like following this rule will lead to clearer code in the violations in this codebase.
2018-07-02 12:52:47 -07:00
Lucas Wiman
da65d0be32 Fix E30X too-few line spacing errors. 2018-07-02 12:20:38 -07:00
Lucas Wiman
600ddc8dc5 Fix F401: imported but unused. 2018-07-02 12:16:41 -07:00
Lucas Wiman
679aed41a2 Remove unused __unicode__ method (dead code). 2018-07-02 11:52:05 -07:00
Lucas Wiman
954624cb22 Fix F841: local variable is assigned but never used. 2018-07-02 11:50:56 -07:00
Lucas Wiman
f845dcb24c Fix E231: missing whitespace after ",". 2018-07-02 11:49:16 -07:00
Lucas Wiman
654e13235e Fix E303 too many blank lines. 2018-07-02 11:47:19 -07:00
Lucas Wiman
9a6634b87a Ignore assigning to lambda warning. 2018-07-02 11:45:51 -07:00
Lucas Wiman
54543f1e8d Add a flake8 environment to ensure pep8 compatibility. 2018-07-02 11:43:38 -07:00
Lucas Wiman
16dec4d12d
Merge pull request #317 from lucaswiman/django-1.11-compatibility
Fix handling of deferred fields on django 1.10+
2018-07-02 11:30:09 -07:00
Lucas Wiman
2e92877910 Merge branch 'master' into django-1.11-compatibility 2018-07-02 11:21:48 -07:00
Martey Dodoo
e750fc7408 Fix AUTHORS.rst formatting.
Add pipe character at the beginning of each line so that all authors are
not concatenated together when ReStructuredText is parsed. Add Martey to
AUTHORS as well.
2018-06-30 16:18:16 -07:00
Harry Moreno
1197839765 Update docs to support django 2.0 2018-06-30 16:11:43 -07:00
Lucas Wiman
45502c0ec2
Put changelog in the right place. 2018-06-30 15:52:00 -07:00