Skip to content
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.11 compatibility issue - cannot import name flatatt #673

Closed
ses4j opened this issue Apr 4, 2017 · 4 comments
Closed

Django 1.11 compatibility issue - cannot import name flatatt #673

ses4j opened this issue Apr 4, 2017 · 4 comments

Comments

@ses4j
Copy link

ses4j commented Apr 4, 2017

    from django.forms.widgets import flatatt
ImportError: cannot import name flatatt```

Got the above when trying to upgrade to Django 1.11.
@hcharley
Copy link

hcharley commented Apr 4, 2017

Seeing this as well:

  File "/Users/cbodkin/.virtualenvs/p2p-liveblog/lib/python2.7/site-packages/django_filters/widgets.py", line 13, in <module>
    from django.forms.widgets import flatatt
ImportError: cannot import name flatatt

@hcharley
Copy link

hcharley commented Apr 4, 2017

It looks like the proper way to import that is:

from django.forms.utils import flatatt

See:
https://docs.djangoproject.com/en/1.10/_modules/django/forms/widgets/

@rpkilby
Copy link
Collaborator

rpkilby commented Apr 4, 2017

What version of django-filter are you using? This should have been fixed in the latest release (1.0.2)

@hcharley
Copy link

hcharley commented Apr 4, 2017

Ah, yes. That fixed it for me. Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants