positions

This commit is contained in:
Gwendolyn 2023-12-21 14:40:51 +01:00
parent 6fefc8c018
commit d6f234cf1f
2 changed files with 15 additions and 1 deletions

View file

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