Commit Graph

22 Commits (f7c9df935f47655bff93a9ebf5d7a27bb9a876f6)

Author SHA1 Message Date
Diederik van der Boor cf0cb2478f Make the admin `base_model` setting optional.
It can be detected using get_base_polymorphic_model()
2017-09-30 16:35:02 +02:00
Diederik van der Boor 19497960c7 Fixed template settings in example app 2017-09-30 16:33:52 +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 352b56e104 Merge branch 'feature/inlines' 2016-08-10 11:48:02 +02:00
Diederik van der Boor a533dc4b23 Update example to show polymorphic inlines 2016-08-09 01:21:21 +02: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 137139f2bb Fix other PEP8 issues in assorted files 2015-12-28 17:39:04 +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
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 f28b0b5172 Update migrations
No backwards-compatibility here! Just dump your old base! :D
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 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 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
Diederik van der Boor 454ecb344a example: silence Django 1.7 system check 2014-10-14 16:28:01 +02:00
Diederik van der Boor b5774423f7 Improve on #69, using setdefault() and update example project
Camp site rule; leave things tidier than you found them :)
2014-04-03 14:27:56 +02:00
Diederik van der Boor 4106ad7296 Apply list filter in example app 2013-04-08 00:37:51 +02:00
Diederik van der Boor a0ab068449 Included Proxy models in example app. 2013-04-08 00:32:06 +02:00
Diederik van der Boor 06ac5a4795 Convert Django project files in the root to example project.
Move pexp project to 'example' folder too.
2013-03-28 14:16:45 +01:00