Diederik van der Boor
59e3878835
Add detection for missing PolymorphicInlineSupportMixin
2016-08-09 01:21:37 +02:00
Diederik van der Boor
7330a4f099
Add preliminairy working JavaScript to render polymorphic inlines
2016-08-09 01:20:40 +02:00
Diederik van der Boor
1f0ddd8436
Rename inline/formset classes to avoid more confusion.
...
AbstractSingletonProxyFactoryBean danger luked here...
Added the Stacked...Inline for clarity too.
2016-08-09 01:11:05 +02:00
Diederik van der Boor
8c42893abd
docs start for formset/inline support
2016-06-13 10:18:18 +02:00
Diederik van der Boor
a07ce7260c
Upstream support for polymorphic formsets and and inline models.
...
Originally written in django-fluent-contents to support polymorphic generic inlines;
72d816b8bb
2016-06-10 14:30:51 +02:00
Diederik van der Boor
2a599b5f99
Convert `admin.py` into a package.
...
Clears up the code and prepare to receive more changes for formset support.
2016-06-10 14:25:06 +02:00
Diederik van der Boor
226e5689bd
Merge pull request #215 from skirsdeda/master
...
Admin refactoring (based on #58 )
2016-06-10 14:09:24 +02:00
Diederik van der Boor
0ce882dd7b
Make the Django 1.6 support more explicit for PR #218
2016-06-06 15:26:48 +02:00
Alex Alvarez
d714040331
Adding < django 1.6 flags in code and test
2016-06-03 12:45:21 -04:00
Alex Alvarez
a16345874e
Issue #213 : Don't modify Q passed in as arguments
2016-06-02 01:10:43 -04:00
Austin Matsick
4aece2b5d3
#216 Use self._state.db instead of `using` kwarg in model methods.
...
Thanks to @vdboor for the suggestion.
Also:
- Add missing `using` kwargs in query_translate functions.
- Add a couple unit tests for non-default database functionality.
2016-05-30 18:55:03 -05:00
Austin Matsick
2f11cb6ffd
#216 Specify `using` kwarg in get_real_instance method calls.
2016-05-29 14:05:45 -05:00
Austin Matsick
343aa41ec1
#216 Allow ContentType queries to be performed on non-default databases.
2016-05-27 20:35:39 -05:00
Tadas Dailyda
2028ecda1e
Correct comment in admin.py
2016-05-24 05:06:50 -04:00
Tadas Dailyda
e33cf73fb2
Admin refactoring based on #58 (related field to child models and other fixes) but with backwards compatibility
2016-05-20 06:50:33 -04: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