Closed PetrDlouhy closed 6 years ago
Thanks @PetrDlouhy that's mighty kind of you! I think Travis must use some cached mirror doesn't have Django 2.0.1 on it yet.
@asfaltboy No, Django 2.0 doesn't support Python 2, that is cause for the fail of the first two builds. The cause of the Python 3 build is that there will be needed more compatibility changes.
I will resolve those problems.
@asfaltboy I fixed all the tests. The failing tests are due to django-braces
which are not yet released for Django 2.0.
Any progress on it?
Sorry @cyberbudy , we're sort of blocked by 3rd party package compatibility issue (brack3t/django-braces#233).
You may still use PetrDlouhy's develop
branch try to workaround the issue by providing your own copy of the mixins instead of braces' ones (that won't fail in 2.0), as here:
django-braces bumped the code to cover django 2 https://github.com/brack3t/django-braces/commit/8b2f4122ea02f907ad9e9e29fa19d90f594ecebb
Thanks for the reminder @lnxg33k , I pushed a dependency commit to this PR, if all is well we should be able to merge it.
Seems like some Q()
object serialisation assertions are actually failing now on Python 3.5 w/ Django 2 in Travis. We'll need to have a look at this before we merge, help is appreciated!
url.py is not Django 2.0 compliant, it simply doesn't work
Might want to add a database migration in this PR. I just ran makemigrations
from your branch, and got some updates:
Migrations for 'advanced_filters':
/usr/local/lib/python3.6/site-packages/advanced_filters/migrations/0003_auto_20180606_1855.py
- Alter field created_at on advancedfilter
- Alter field created_by on advancedfilter
- Alter field groups on advancedfilter
- Alter field title on advancedfilter
- Alter field url on advancedfilter
- Alter field users on advancedfilter
This may help, actually I'm using this in Django 2.0: https://github.com/modlinltd/django-advanced-filters/pull/73
Is there any update for Dajngo 2.0
?
I've corrected the last failing test and rebased over develop
. @PetrDlouhy I would really ❤️ a cross-review for the latest changes if you can.
@anuj9196 @peppelinux @cyberbudy please feel free to try this branch out and let us know if you find anything peculiar.
When will this merge? I tested the branch proposed in my project with Django 2.0.7 and Python 3.6 and it worked!
For those that need this asap, add this to your requirements.txt
:
-e git://github.com/PetrDlouhy/django-advanced-filters.git@e769781ac489dfd408c2f872b2d60603451fc677#egg=django-advanced-filters
@asfaltboy I looked at the changes, and they look good to me. Thanks for the except
fix, that was oversight from my side.
Edit: the following part was written before I saw the issue #79. So I will continue the discussion there.
There is one think, I thing is not right (but was not right before this change). And it is the install_requires
in setup.py
. I think, we shouldn't stick to one version. It could lead to unsolvable dependencies problem. I think, we should change it to:
install_requires=[
'django-braces>=1.4.0',
'simplejson>=3.6.5',
],
Thanks for the review Petr! ~Together with PR #70 (regarding missing migrations)~ This will make for a nice small "support release".
Fixes for Django 2.0