provide coordinates when serializing a custom location
This commit is contained in:
parent
5e96d98693
commit
99e33eeb9e
2 changed files with 1 additions and 2 deletions
|
@ -526,7 +526,6 @@ class DynamicLocation(CustomLocationProxyMixin, SpecificLocation, models.Model):
|
|||
'available': True,
|
||||
'id': self.pk,
|
||||
'slug': self.slug,
|
||||
'coordinates': custom_location.pk,
|
||||
'icon': self.get_icon(),
|
||||
'title': self.title,
|
||||
'subtitle': '%s %s%s, %s' % (
|
||||
|
@ -619,7 +618,6 @@ class Position(CustomLocationProxyMixin, models.Model):
|
|||
'available': True,
|
||||
'id': 'p:%s' % self.secret,
|
||||
'slug': 'p:%s' % self.secret,
|
||||
'coordinates': custom_location.pk,
|
||||
'icon': 'my_location',
|
||||
'title': self.name,
|
||||
'subtitle': '%s, %s, %s' % (
|
||||
|
|
|
@ -292,6 +292,7 @@ class CustomLocation:
|
|||
result = OrderedDict((
|
||||
('id', self.pk),
|
||||
('slug', self.pk),
|
||||
('coordinates', self.pk),
|
||||
('icon', self.icon),
|
||||
('title', self.title),
|
||||
('subtitle', self.subtitle),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue