aboutsummaryrefslogtreecommitdiffstats
path: root/mediagoblin/edit/views.py
diff options
context:
space:
mode:
authorJessica Tallon <jessica@megworld.co.uk>2014-10-27 11:11:43 +0000
committerJessica Tallon <jessica@megworld.co.uk>2014-10-27 11:11:43 +0000
commitc5f258fec07b9791b35d52298dd71954de81ef20 (patch)
tree3c887189743d3cc1faf8cb57e0ba9e39a4631292 /mediagoblin/edit/views.py
parent0dc2e731d61e1a68c53a811beee78559e86c5271 (diff)
downloadmediagoblin-c5f258fec07b9791b35d52298dd71954de81ef20.tar.lz
mediagoblin-c5f258fec07b9791b35d52298dd71954de81ef20.tar.xz
mediagoblin-c5f258fec07b9791b35d52298dd71954de81ef20.zip
Fix #1007 - get location object not string of location name; caused 500 when editing profile
Diffstat (limited to 'mediagoblin/edit/views.py')
-rw-r--r--mediagoblin/edit/views.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/mediagoblin/edit/views.py b/mediagoblin/edit/views.py
index 30a32a7e..97e33e6a 100644
--- a/mediagoblin/edit/views.py
+++ b/mediagoblin/edit/views.py
@@ -221,7 +221,7 @@ def edit_profile(request, url_user=None):
if form.location.data and user.location is None:
user.get_location = Location(name=unicode(form.location.data))
elif form.location.data:
- location = user.get_location.name
+ location = user.get_location
location.name = unicode(form.location.data)
location.save()