projects
/
mediagoblin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b808c1
)
Fix #1049 - name renamed to displayName for Location
author
Jessica Tallon
<jessica@megworld.co.uk>
Fri, 5 Dec 2014 14:03:52 +0000
(14:03 +0000)
committer
Jessica Tallon
<jessica@megworld.co.uk>
Fri, 5 Dec 2014 14:04:18 +0000
(14:04 +0000)
mediagoblin/db/models.py
patch
|
blob
|
blame
|
history
diff --git
a/mediagoblin/db/models.py
b/mediagoblin/db/models.py
index 7afd428d98c6ba8b5ce0d626982581c0a93a02f0..98a91ccc6a427a5fa9e6dbf7095b0be57a6b90fc 100644
(file)
--- a/
mediagoblin/db/models.py
+++ b/
mediagoblin/db/models.py
@@
-70,7
+70,7
@@
class Location(Base):
location = {"objectType": "place"}
if self.name is not None:
- location["
n
ame"] = self.name
+ location["
displayN
ame"] = self.name
if self.position:
location["position"] = self.position
@@
-81,8
+81,8
@@
class Location(Base):
return location
def unserialize(self, data):
- if "
n
ame" in data:
- self.name = data["
n
ame"]
+ if "
displayN
ame" in data:
+ self.name = data["
displayN
ame"]
self.position = {}
self.address = {}