From c5f258fec07b9791b35d52298dd71954de81ef20 Mon Sep 17 00:00:00 2001 From: Jessica Tallon Date: Mon, 27 Oct 2014 11:11:43 +0000 Subject: [PATCH] Fix #1007 - get location object not string of location name; caused 500 when editing profile --- mediagoblin/edit/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() -- 2.25.1