aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/views.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-06-25 22:24:03 +0300
committerBerker Peksag <berker.peksag@gmail.com>2015-06-25 22:24:03 +0300
commit896d00fbf22f5701f811bb4cea28b01cbb618ee1 (patch)
treea2d64574555eb94be623c426ee0c965bb959f648 /mediagoblin/edit/views.py
parenta17845d42e838981784732c790119804fc7fd2b0 (diff)
downloadmediagoblin-896d00fbf22f5701f811bb4cea28b01cbb618ee1.tar.lz
mediagoblin-896d00fbf22f5701f811bb4cea28b01cbb618ee1.tar.xz
mediagoblin-896d00fbf22f5701f811bb4cea28b01cbb618ee1.zip
Change all unicode() calls with six.text_type().
Fixes #5329.
Diffstat (limited to 'mediagoblin/edit/views.py')
-rw-r--r--mediagoblin/edit/views.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py
index 97e33e6a..8cee1cc0 100644
--- a/mediagoblin/edit/views.py
+++ b/mediagoblin/edit/views.py
@@ -219,10 +219,10 @@ def edit_profile(request, url_user=None):
# Save location
if form.location.data and user.location is None:
- user.get_location = Location(name=unicode(form.location.data))
+ user.get_location = Location(name=six.text_type(form.location.data))
elif form.location.data:
location = user.get_location
- location.name = unicode(form.location.data)
+ location.name = six.text_type(form.location.data)
location.save()
user.save()