Austin Matsick
343aa41ec1
#216 Allow ContentType queries to be performed on non-default databases.
2016-05-27 20:35:39 -05:00
Andrew Dodd
120f124b91
Issue #200 - Exclude super-class from proxy model query sets
...
These changes prevent the query sets on 'proxy' models from including
the items from the 'super-class'.
2016-05-04 15:52:44 +02:00
Diederik van der Boor
75646f1f24
Bump to 0.9.2
2016-05-04 11:29:53 +02:00
Diederik van der Boor
ed64ed283f
Resolved deprecation warning for Django 1.10
2016-05-04 11:29:53 +02:00
NotSqrt
b8c8ff7bfa
Test that expressions are supported
2016-04-26 20:12:04 +02:00
Diederik van der Boor
5aa15b226e
Improve code flow for Django 1.7/1.8 in patch_lookup args
2016-03-11 17:16:05 +01:00
Diederik van der Boor
88922d7d5e
Fix error when using `date_hierarchy` field in the admin
...
Closes : #201
2016-03-11 17:13:09 +01:00
Diederik van der Boor
6319dabcef
Fix trailing whitespace in query.py
2016-03-11 17:13:01 +01:00
Diederik van der Boor
84a29db2f6
Bump version to 0.9.1
2016-02-18 18:28:48 +01:00
Diederik van der Boor
ccda52d91e
Fixed the breadcrumb of the object_history template.
...
NOTE: this could conflict with projects that use django-reversion,
if the `VersionAdmin` is the last in the inheritance chain.
2016-02-18 18:17:08 +01:00
Diederik van der Boor
88bb23b506
Fix deferred loading of 'pk' field
2016-02-18 13:14:49 +01:00
Diederik van der Boor
46e41a6c1c
Fix changeform_view() redirection to the child admin site.
...
This method is normally called from `add_view()` and `change_view()`.
However, some third party modules (such as django-reversion) call this
method directly. By redirecting those calls to the child admin, their
views also display the proper admin views.
2016-02-17 14:49:40 +01:00
Diederik van der Boor
65de1f74ab
Added PolymorphicManager.from_queryset() to properly set the queryset
2016-02-17 12:36:48 +01:00
Diederik van der Boor
3bab378b25
Bump version to 0.9
2016-02-17 12:28:01 +01:00
Diederik van der Boor
14a5417891
Added yet another hack to keep the child admin site happy.
...
This really validates a different solution to the child admin layout,
e.g. by registering the models in the regular admin site.
2016-02-17 12:27:33 +01:00
Diederik van der Boor
efdebb1575
Fix missing redirect for the history_view.
...
This fixes django-reversion, and partally django-reversion-compare.
2016-02-17 11:20:11 +01:00
Diederik van der Boor
01a35cfe95
Fix Django 1.9 handling of custom URLs.
...
The new change-URL redirect overlapped any custom URLs defined in the child admin.
This makes sure the redirect doesn't interfere with custom URLs.
2016-02-17 11:20:11 +01:00
Diederik van der Boor
4277c148aa
Merge pull request #161 from theatlantic/pr-add-deferred-fields
...
Add support for qset.only() and qset.defer()
2016-02-17 11:14:48 +01:00
slide333333
9b7c2d72b7
Added test cases for complex expressions in aggregate/annotate
2016-01-21 15:32:28 +01:00
slide333333
c5d4687bb9
Support Django 1.8 complex expressions on aggregate/annotate
2016-01-21 13:21:21 +01:00
Frankie Dintino
6df1403de5
Add support for qset.only() and qset.defer()
2016-01-04 00:36:48 -05:00
gilgamezh
b17aa58ad9
Merge remote-tracking branch 'upstream/master' into allow_extra_manager
2015-12-29 17:49:09 -03:00
Diederik van der Boor
e9f549758f
Bump version to 0.8.1
2015-12-29 14:55:25 +01:00
Diederik van der Boor
b0657ef9c7
Fix reverse relation support for ___ filter operator
2015-12-29 14:52:58 +01:00
Diederik van der Boor
009069a32b
Avoid auto-proxying all methods to the queryset.
...
This is unwanted behavior, and django provides much better methods for
it instead. (PolymorphicQuerySet.as_manager() / PolymorphicManager.from_queryset()
2015-12-28 17:10:58 +01:00
Diederik van der Boor
9e2c11beb8
Replace __version__.py with __init__.py
...
Also fixes reporting in sentry.
2015-12-28 17:10:42 +01:00
Diederik van der Boor
5191b6c130
Also remove showfields imports from __init__.py
...
If we're to cause pain, let it be once.
2015-12-28 17:10:42 +01:00
Diederik van der Boor
50f21dfa43
Rename manager.py => managers.py for consistency
2015-12-28 17:10:42 +01:00
Diederik van der Boor
07242d210f
Fix "Model" __ "_field" query support
...
Broken by 24e6b21204 for Django 1.9
upgrade
2015-12-28 16:19:27 +01:00
Diederik van der Boor
b7431b2d06
Fix PEP8 block comment issues (E265)
2015-12-28 15:16:42 +01:00
Diederik van der Boor
aaf06c71a5
Fix PEP8 whitespace issues
...
autopep8 -r polymorphic/ example/ -i
--select=E112,E113,E115,E116,E122,E123,E125,E127,E128,E201,E202,E203,E211,E225,E226,E227,E228,E231,E251,E261,E262,E271,E272,E273,E274,E301,E302,E303,E304,E309,E711,E713,W291,W293,W391
--exclude migrations,south_migrations
(line conditiation fixes: E123,E125,E122,E127,E128)
2015-12-28 15:16:29 +01:00
gilgamezh
f419e37ab3
Allow to set a 'extra' custom manager withut override the _default_manager
2015-12-23 21:07:44 -03:00
Jonas Haag
4da67a0fb6
Fix an issue with '.values()' queries
2015-12-16 10:31:36 -03:00
Jonas Haag
0b87a5ecc8
Fixed a Python >= 3.7 incompatibility (see PEP 479)
2015-12-16 10:31:36 -03:00
Jonas Haag
ee2e0a95ea
Extend comment about admin URL patching
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
fb32b97b37
Remove obsolete compatibility code comment
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
e73a4662c3
Prevent infinite redirection on django1.9
...
See here[1] as to why this is an issue, and why we can skip the avoided
code on django>=1.9.
[1]: https://docs.djangoproject.com/en/1.9/releases/1.9/#django-contrib-admin
2015-12-16 10:31:36 -03:00
Jonas Haag
6cf187b2de
Fix Django < 1.8 compatibility
2015-12-16 10:31:36 -03:00
Jonas Haag
24e6b21204
Fix a handful of warnings and remove some unused compatibility code
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
adcad20b48
Update all tests (and runtests.py)
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera
b996d1c377
Avoid broken references to declared_fieldset
...
Check if this attribute exists first, since it does not in recent django
versions.
2015-12-16 10:31:33 -03:00
Hugo Osvaldo Barrera
ad5ce60158
Remove reference to obsolete request.REQUEST
2015-10-21 22:27:00 -03:00
Hugo Osvaldo Barrera
31bfe8d1e7
Remove deprecated django.conf.urls.patterns
2015-10-21 22:18:21 -03:00
Hugo Osvaldo Barrera
c48d4f589b
Don't import models and managers in __init__
...
This is deprecated as of django 1.8, and does not work as of django 1.9.
2015-10-21 22:11:06 -03:00
Gavin Wahl
0c940bd795
SingleRelatedObjectDescriptor was renamed in Django 1.9
2015-10-13 13:22:13 -06:00
Gonzalo Bustos
83eec48d27
add spanish translation
2015-10-12 11:44:01 -03:00
Diederik van der Boor
c8973d1fba
Fixed Python 2.6 tests, and fixed tox.ini from PR #162 for python 3
2015-10-01 14:35:34 +02:00
Diederik van der Boor
ce4b9348ec
Bump version to 0.7.2 to release a few minor bugfixes
2015-10-01 14:26:28 +02:00
Diederik van der Boor
2ffbd51844
Added as_manager() support for querysets
2015-10-01 14:26:28 +02:00
Diederik van der Boor
d85664f0b7
Optimize PolymorphicModel attribute access, only use __getattribute__ hack when needed.
2015-10-01 14:03:33 +02:00