Browse Source

Keep py3.X compatibility for urllib

Change-Id: Iafb19056161b6412a6e791e9b5f3a2060a3f8410
Partial-Bug:#1280105
tags/2.0.0.0b2
Swapnil Kulkarni (coolsvap) 4 years ago
parent
commit
9e176b0ad2
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      muranodashboard/templatetags/custom_filters.py

+ 2
- 2
muranodashboard/templatetags/custom_filters.py View File

@@ -1,7 +1,7 @@
from django import forms
from django import template
from django.template import defaultfilters
import urllib
from six.moves.urllib import parse as urlparse

register = template.Library()

@@ -26,4 +26,4 @@ def last_half(seq):
@register.filter(name='unquote')
@defaultfilters.stringfilter
def unquote_raw(value):
return urllib.unquote(value)
return urlparse.unquote(value)

Loading…
Cancel
Save