Commit Graph

33 Commits

Author SHA1 Message Date
pre-commit-ci[bot]
9b60339529 [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
2024-03-12 20:23:19 +00:00
Emad Rad
ae9bc803f1 chore: cleanup
- typos fixed
- useless import removed
2024-03-01 05:09:01 +03:30
Aarni Koskela
9a8daee9e0 Replace string interpolation and .format calls with f-strings 2023-12-20 12:44:46 +02:00
Adam Donaghy
9553e52d6c Fix files 2023-11-23 19:22:28 +11:00
Diederik van der Boor
5b9acd1848
isort and black with longer line length 2021-11-18 12:42:29 +01:00
Diederik van der Boor
8a5b55538d
Used pyupgrade to remove Python 2 and 3.5 compatibility code 2021-11-18 12:42:29 +01:00
Diederik van der Boor
8066c4cc03
Fixed Django 4.0 compatibility using django-upgrade 2021-11-18 11:58:53 +01:00
Bastien Vallet
85469082d0 Remove python_2_unicode_compatible method 2020-08-04 14:38:15 +02:00
Diederik van der Boor
59c020ee50
Reformat all files with isort and black 2019-07-15 09:50:15 +02:00
Diederik van der Boor
9a0268f7de
Fixed example app to run in Django 2.1 2018-08-24 00:06:20 +02:00
Diederik van der Boor
f84e732767 fixed test management commands 2018-01-22 15:22:39 +01:00
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