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 carltongibson committed Oct 19, 2017
1 parent fc4bad4 commit b602f98
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions django_filters/widgets.py
Original file line number Diff line number Diff line change
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 b602f98

Please sign in to comment.