É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
tumb1er
ba83be0b43
fix #330 patch MyModel.save instead of MyModel().save
2018-11-20 18:32:09 +03: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
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
7d6b45f0c1
Increase coverage: verify that accessing the descriptor from the class yields the descriptor object.
2018-06-28 17:04:57 -07:00
Lucas Wiman
cde1d706af
Cover a branch in has_changed.
2018-06-28 14:08:03 -07:00
Lucas Wiman
15f9393bb2
Handle API change in DeferredAttribute descriptor in django-trunk.
...
This should maintain compatibility with the next version of django.
2018-06-28 13:16:33 -07:00
Lucas Wiman
5d410e9ccc
Fix test failures from merge.
2018-06-28 11:29:44 -07:00
Lucas Wiman
98a1366608
Merge branch 'defer-has-changed' into django-1.11-compatibility
2018-06-21 12:52:33 -07:00
Lucas Wiman
90ed7fc905
Improve coverage.
2018-06-21 12:41:42 -07:00
Lucas Wiman
80b099f129
Do not override custom descriptors when present.
...
This commit adds a collection of wrapper classes for tracking fields
while still using custom descriptors that may be present. This fixes
a bug where deferring a model field with a custom descriptor meant
that the descriptor was overridden in all subsequent queries.
2018-06-21 12:41:42 -07:00
Lucas Wiman
be52bc9290
Add failing test for deferred attributes.
2018-06-21 12:41:42 -07:00
Lucas Wiman
0fc0b44c95
Remove version checks for django<1.8.
...
Support for older versions of django was dropped in 3.0.0.
2018-06-21 12:41:42 -07:00
Hanley Hansen
18dfb6b2cf
Merge pull request #279 from hanleyhansen/inheritance-iterable
...
Update InheritanceIterable to inherit from ModelIterable instead of BaseIterable
2018-05-02 14:14:22 -04:00
Jack Cushman
d34043fd25
Avoid fetching deferred fields in has_changed
2018-02-10 10:53:36 -05:00
Tony Narlock
28bd4567a7
switch to py.test + pytest-cov
2017-12-11 08:11:55 -06:00
Hanley
0a809df4da
make InheritanceIterable inherit from ModelIterable instead of BaseIterable
2017-06-23 09:51:32 -04:00
Carl Meyer
198dcb612e
Update github links for jazzband transfer.
2017-04-15 08:47:31 -07:00
Bruno Alla
10ebc16271
Exclude tests from distribution
...
fixes #258
2017-02-15 23:00:10 +00:00