some more preview image and embed card related stuff
This commit is contained in:
parent
42d148441c
commit
f498592390
4 changed files with 29 additions and 11 deletions
|
@ -655,10 +655,17 @@ class Position(CustomLocationProxyMixin, models.Model):
|
|||
})
|
||||
return result
|
||||
|
||||
@property
|
||||
def title(self):
|
||||
return self.name
|
||||
|
||||
@property
|
||||
def slug(self):
|
||||
return 'p:%s' % self.secret
|
||||
|
||||
def get_slug(self):
|
||||
return self.slug
|
||||
|
||||
def serialize(self, *args, **kwargs):
|
||||
return {
|
||||
'dynamic': True,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue