Diederik van der Boor
fa9612d49c
Small Django 1.8/19 difference for .only()
2018-04-16 11:21:39 +02:00
trbs
1c110ae4bb
fix error with .defer and child models that use the same parent
...
When using .defer on a PolymorphicQuerySet with multiple childs that
subclass from the same polymorphic parent model yield an error like:
>>> Base.objects.defer('ModelY___field_y')
Traceback (most recent call last):
...
FieldDoesNotExist: ModelX has no field named 'field_y'
(cherry picked from commit 9500a21f82 )
2018-04-16 11:08:27 +02:00
Diederik van der Boor
f126f5f304
Provide a better error message when polymorphic_ctype_id is Null
...
refs #51 , #140 , #304
(cherry picked from commit fb8eed78ad )
2018-04-16 11:08:27 +02:00
Jerome Leclanche
298460c4cf
Drop support for Django <1.8, Python <2.7
2017-07-10 09:08:11 +03:00
Diederik van der Boor
44d79b5a19
Fixed Python 2.6 support in test code
2017-05-01 12:45:43 +02:00
Diederik van der Boor
9c618d8b21
Improve tests to use a unified qrepr() output
2017-05-01 12:34:49 +02:00
Charlie Denton
aefb7dabc2
Django 1.11 uses real class names in __repr__()
...
See https://code.djangoproject.com/ticket/27546 and
https://github.com/django/django/commit/48826aa
2017-03-03 22:56:09 +00:00
Diederik van der Boor
add90aac4f
Replace assertEquals -> assertEqual
2017-01-09 15:14:55 +01:00
Diederik van der Boor
1f15a72a80
Moved polymorphic models back to tests/__init__.py, for Django 1.6-
2017-01-09 15:12:26 +01:00
Diederik van der Boor
b9f1709587
Update model paths in tests to new split test paths
2017-01-09 14:42:34 +01:00
Diederik van der Boor
9493bd8bc1
split tests.py into a python package
2017-01-09 14:41:56 +01:00