Django-filter: Invalid syntax error when importing Filterset

Created on 6 Jul 2018  路  3Comments  路  Source: carltongibson/django-filter

from .filterset import FilterSet
File "/python2.7/site-packages/django_filters/filterset.py", line 141
    def __init__(self, data=None, queryset=None, *, request=None, prefix=None):
                                                  ^
SyntaxError: invalid syntax

Python 2.7
Django 1.11
django-filter (latest master)

Most helpful comment

Hi @rvernica. This has been fixed, just not released. See #953.

All 3 comments

If you need to support Python 2.7 or Django <1.11 use the version 1.1 release. i was using 2.0 dev

The metadata for the 2.* packages should enforce Python >= 3. I think this issue should be reopened.

Hi @rvernica. This has been fixed, just not released. See #953.

Was this page helpful?
0 / 5 - 0 ratings