New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Django 1.4 Support #6
Comments
I changed Date filter so that it works with Django 1.4 rc1. Maybe it can be of help in rewriting Filtrate for new version.
filters.py:
It's definitely not a pretty solution (note the queryset method!), but surprisingly it works. There is no TreeFilter, I don't use it so I didn't get around to tackle it... |
Thanks for that, hopefully I/we can get django-admin-filtrate 1.4 compatible before it hits stable. Cheers! |
I This worked in django 1.4: class DateRangeFilter2(DateFieldListFilter):
|
I changed the tempalte too... {% comment %}
{% endcomment %} {% load i18n %} {% blocktrans with title as filter_title %} By {{ filter_title }} {% endblocktrans %}
{% endfor %} |
Just writing here to say that I've started working on bringing the entire app up to Django 1.4. Expect more news soon :) |
I'd recommend jumping straight to 1.6 (if not 1.7) if you're going to the trouble. 1.7 is a bit more fiddly but targeting 1.6 instead of 1.4 shouldn't be a significant increase in complexity. |
I got 1.4 (and probably later versions too) working in the v1.4 branch. Both TreeFilter and DateRangeFilter works:
So if anyone feels adventurous, then go play with it :) |
The v1.4 branch now works (for me) in both Django 1.4 and 1.7. https://github.com/runekaagaard/django-admin-filtrate/tree/v1.4 |
This sort of works, but I had to do a few things to get it to work using 1.7.1, rather than having immediate out of the box support. It still saved me a ton of time though, so thank you! I just wanted to pass off some notes for you, hopefully useful...
|
This is fixed think. |
Django 1.4 brings some changes to admin filters, so Filtrate filter will brake. Loudly.
http://yuji.wordpress.com/2011/06/15/django-1-4-alpha-custom-list-filter-rip-filterspec/
The text was updated successfully, but these errors were encountered: