Commit Graph

585 Commits (544f5edef4b1f1cc879018bdd7f205b9082b122a)

Author SHA1 Message Date
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 137139f2bb Fix other PEP8 issues in assorted files 2015-12-28 17:39:04 +01:00
Diederik van der Boor f90e87afcc docs: highlight BACKWARDS INCOMPATIBILITY 2015-12-28 17:34:25 +01:00
Diederik van der Boor 156968b12b Bump version to 0.8 2015-12-28 17:19:37 +01:00
Diederik van der Boor 7d4f9dd9ae docs: update changelog on how to to port to 0.8 2015-12-28 17:18:40 +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 c2b7e75125 Improve runtests.py to run specific tests 2015-12-28 16:20:12 +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 4e5ac03412 Fix running example management commands in Django 1.9 2015-12-28 15:28:37 +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
Diederik van der Boor f656ec438e docs: add showfields import change 2015-12-28 14:50:37 +01:00
Diederik van der Boor 7b4939bb3f tox.ini: add spaces 2015-12-28 14:49:03 +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 f9920bfa14 Test Django 1.8 with Python 3.5
Django's latest 1.8.X minor supports Python 3.5.
2015-12-17 13:18:54 +01:00
Diederik van der Boor a01fd92d1c perform Django 1.9 tests on final release, add to tox too 2015-12-16 15:59:25 +01:00
Diederik van der Boor 999775c2d5 Merge pull request #170 from hobarrera/django19
Django19
2015-12-16 15:57:29 +01:00
Hugo Osvaldo Barrera 8200f91603 Add myself to AUTHORS 2015-12-16 10:31:36 -03:00
Jonas Haag 1d0302e4a1 Travis: Add Python 3.5 and Django 1.9 2015-12-16 10:31:36 -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 17583d15b3 Add an example that reproduces a pending issue
This should help make testing easier and should server as a reference
for something we'll want to write a test for in future.
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
Hugo Osvaldo Barrera f28b0b5172 Update migrations
No backwards-compatibility here! Just dump your old base! :D
2015-12-16 10:31:36 -03:00
Hugo Osvaldo Barrera 59679f3a4b Run tests on py35 as well 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 977c73c4c3 Make runtests compatible with older django versions again 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 a779187012 Add migrations for example app
Since running the app requires database initialization, it makes sense
to bundle these.
2015-10-21 22:27:18 -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 d4f061de8b Update documentation to reflect recent changes 2015-10-21 22:16:35 -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
Diederik van der Boor 6a86a5ce91 Merge pull request #165 from fusionbox/django-1.9
Django 1.9 Fixes
2015-10-20 16:40:57 +02:00
Gavin Wahl 0c940bd795 SingleRelatedObjectDescriptor was renamed in Django 1.9 2015-10-13 13:22:13 -06:00
Diederik van der Boor 37d3f3ea1e Merge pull request #167 from gonzalobustos/master
add spanish translation
2015-10-13 11:48:55 +02: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
Diederik van der Boor fdf905d91b Merge pull request #156 from svleeuwen/patch-1
Fix Pickle exception when polymorphic model is cached
2015-10-01 14:02:12 +02:00