mattiaslinnap / django-partial-index

PostgreSQL and SQLite partial index support for Django
BSD 3-Clause "New" or "Revised" License
116 stars 12 forks source link

Add support for Django 2.0 #6

Closed sjamaan closed 6 years ago

sjamaan commented 6 years ago

The only thing blocking this is the super() call in PartialIndex, because Index has been changed to allow calling it only with keyword args, not positional args.

Tweak Travis config to build only Django 2.0 for Python3 versions.

sjamaan commented 6 years ago

ok, never mind. This was a bit premature; the sql creation has been refactored, so this won't work (it only seemed to work for my application)

mattiaslinnap commented 6 years ago

Hi @sjamaan

It was a bit trickier due to that refactoring inside Django, not impossible :) https://github.com/mattiaslinnap/django-partial-index/pull/7

Please give it a try, if it looks good will make a public PyPI release as well.

sjamaan commented 6 years ago

Looks good, thanks for the update!

mattiaslinnap commented 6 years ago

Version 0.4.0 with Django2 support is now available on PyPI, and as a release on github.