Petr Dlouhý
37322a75f7
fix test template settings for Django 1.10
2016-06-29 16:15:56 +02:00
Petr Dlouhý
c3f32a1468
test in development Django version in allow failures mode
2016-06-29 13:18:42 +02:00
Diederik van der Boor
8fb1fa924e
README: Add coverage badge
2016-06-17 18:29:03 +02:00
Diederik van der Boor
836e65cde5
Avoid pip upgrade, breaks Python 3.2
2016-06-17 18:25:43 +02:00
Diederik van der Boor
ddc9a8d8df
travis: update to codecov.io instead (nicer UI)
2016-06-17 18:15:42 +02:00
Diederik van der Boor
0353b6ec86
Update links to repository due to new location
2016-06-17 18:02:16 +02:00
Diederik van der Boor
aa0e8a92f1
Removed PyPi download count as per suggestion from maubert on IRC
...
See https://mail.python.org/pipermail/distutils-sig/2016-May/028967.html
2016-06-17 17:40:22 +02:00
Diederik van der Boor
01ba7d6db9
update doc intro with syntax highlight
2016-06-17 17:30:58 +02:00
Diederik van der Boor
6cc21bdb0a
Add README syntax highlighting
2016-06-17 17:29:15 +02:00
Diederik van der Boor
ed6e06aa52
Update README icons for new team repository location!
...
django-polymorphic is a team now!!
2016-06-17 17:24:34 +02:00
Diederik van der Boor
ede30f0c7a
Merge pull request #223 from adamchainz/readthedocs.io
...
Convert readthedocs links for their .org -> .io migration for hosted projects
2016-06-16 13:25:30 +02:00
Adam Chainz
9abb56a7a6
Convert readthedocs links for their .org -> .io migration for hosted projects
...
As per [their blog post of the 27th April](https://blog.readthedocs.com/securing-subdomains/ ) ‘Securing subdomains’:
> Starting today, Read the Docs will start hosting projects from subdomains on the domain readthedocs.io, instead of on readthedocs.org. This change addresses some security concerns around site cookies while hosting user generated data on the same domain as our dashboard.
Test Plan: Manually visited all the links I’ve modified.
2016-06-15 22:40:18 +01:00
Diederik van der Boor
b1f037dd68
Merge pull request #221 from Corvia/master
...
#220 Pass hints to returned queryset in PolymorphicManager.get_queryset.
2016-06-15 10:38:10 +02:00
Diederik van der Boor
971edbfe9e
Merge pull request #222 from skirsdeda/master
...
Fix redirects after child model add/change in PolymorphicChildModelAdmin
2016-06-15 10:34:48 +02:00
Tadas Dailyda
0edd0d4acd
fix redirects after child model add/change in PolymorphicChildModelAdmin
2016-06-14 19:17:04 +03:00
Austin Matsick
b254c3fc97
#220 Skip `test_save_to_non_default_database` on Django 1.4.
2016-06-13 09:00:48 -05:00
Diederik van der Boor
fea5f5a77e
Model cleanups for example app and it's management commands
2016-06-13 11:20:50 +02:00
Diederik van der Boor
819be4b602
Upgrade the example to use the new style of polymorphic admin registration
2016-06-13 10:58:11 +02:00
Diederik van der Boor
c1ee5aad0b
Improve #215 to handle cases where the real_admin points back to self.
...
When the base model also serves as child model, the flow no longer
points to the child admin, but returns `self` instead. Either every user
of `_get_real_admin()` should detect this, or we return the super method
as convenience.
2016-06-13 10:53:29 +02:00
Diederik van der Boor
b75e55b6f1
Doc fixes taken from PR #59
2016-06-13 10:31:30 +02:00
Austin Matsick
78fe87d89c
#220 Fix compatibility with Django < 1.7.
2016-06-12 23:23:44 -05:00
Austin Matsick
f1735a8bea
#220 Pass hints to returned queryset in PolymorphicManager.get_queryset.
2016-06-12 22:15:37 -05: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
565adbdc45
update changelog
2016-06-06 15:29: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
Diederik van der Boor
51669e2ed1
Merge pull request #218 from alexander-alvarez/master
...
Issue #213 : Don't modify Q passed in as arguments
2016-06-06 15:24:13 +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
Diederik van der Boor
966776aea5
Merge pull request #217 from Corvia/master
...
#216 Allow ContentType queries to be performed on non-default databases.
2016-05-31 17:18:06 +02: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
Diederik van der Boor
1c4facef4e
Merge pull request #210 from andrewdodd/IncludeProxyModelOnly
...
Issue #200 - Exclude super-class from proxy model query sets
2016-05-23 14:44:37 +02:00
Tadas Dailyda
158ece1d25
add documentation to admin changes
2016-05-20 07:04:48 -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
Diederik van der Boor
5175cd6dbe
Merge pull request #208 from NotSqrt/master
...
Test that expressions are supported
2016-05-04 11:11:13 +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