Skip to content

Commit

Permalink
use urlencode from django.utils.http (#760)
Browse files Browse the repository at this point in the history
This works across django versions from at least version 1.7 and is
compatible across python versions.

https://docs.djangoproject.com/en/1.8/ref/utils/#django.utils.http.urlencode
  • Loading branch information
tony authored and Carlton Gibson committed Aug 22, 2017
1 parent 22682ee commit 0112ff5
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django_filters/widgets.py
Expand Up @@ -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
Expand Down

0 comments on commit 0112ff5

Please sign in to comment.