provide coordinates when serializing a custom location

This commit is contained in:
Laura Klünder 2019-12-28 17:20:45 +01:00
parent 5e96d98693
commit 99e33eeb9e
2 changed files with 1 additions and 2 deletions

View file

@ -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' % (

View file

@ -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),