simple serialize the position

This commit is contained in:
Laura Klünder 2019-12-27 23:30:19 +01:00
parent 1ecdc89a68
commit da09855d27

View file

@ -630,7 +630,14 @@ class Position(CustomLocationProxyMixin, models.Model):
return 'p:%s' % self.secret
def serialize(self, *args, **kwargs):
return self.serialize_position()
return {
'dynamic': True,
'id': 'p:%s' % self.secret,
'slug': 'p:%s' % self.secret,
'icon': 'my_location',
'title': self.name,
'subtitle': _('Position'),
}
def get_geometry(self, *args, **kwargs):
return None