positions
This commit is contained in:
parent
6fefc8c018
commit
d6f234cf1f
2 changed files with 15 additions and 1 deletions
|
@ -657,6 +657,20 @@ class Position(CustomLocationProxyMixin, models.Model):
|
|||
'subtitle': _('Position'),
|
||||
}
|
||||
|
||||
def details_display(self, **kwargs):
|
||||
return {
|
||||
'id': self.pk,
|
||||
'display': [
|
||||
(_('Type'), self.__class__._meta.verbose_name),
|
||||
(_('ID'), str(self.pk)),
|
||||
(_('Title'), self.name),
|
||||
(_('Slug'), self.slug),
|
||||
(_('searchable'), _('No')),
|
||||
(_('can describe'), _('No')),
|
||||
(_('icon'), None),
|
||||
],
|
||||
}
|
||||
|
||||
def get_geometry(self, *args, **kwargs):
|
||||
return None
|
||||
|
||||
|
|
|
@ -1608,7 +1608,7 @@ c3nav = {
|
|||
}
|
||||
if (location.dynamic) {
|
||||
if (!('available' in location)) {
|
||||
c3nav_api.get(`map/locations/dynamic/${location.id}/`)
|
||||
c3nav_api.get(`map/positions/${location.id}/`)
|
||||
.then(c3nav._dynamic_location_loaded);
|
||||
return;
|
||||
} else if (!location.available) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue