simple serialize the position
This commit is contained in:
parent
1ecdc89a68
commit
da09855d27
1 changed files with 8 additions and 1 deletions
|
@ -630,7 +630,14 @@ class Position(CustomLocationProxyMixin, models.Model):
|
||||||
return 'p:%s' % self.secret
|
return 'p:%s' % self.secret
|
||||||
|
|
||||||
def serialize(self, *args, **kwargs):
|
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):
|
def get_geometry(self, *args, **kwargs):
|
||||||
return None
|
return None
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue