diff --git a/django_filters/widgets.py b/django_filters/widgets.py index 779567a63..333af08a7 100644 --- a/django_filters/widgets.py +++ b/django_filters/widgets.py @@ -3,10 +3,7 @@ from collections import Iterable from itertools import chain -try: - from urllib.parse import urlencode -except: - from urllib import urlencode # noqa +from django.utils.http import urlencode import django from django import forms