improve field display description
This commit is contained in:
parent
feabf040a0
commit
494c68e08a
2 changed files with 3 additions and 3 deletions
|
@ -110,7 +110,7 @@ class Space(LevelGeometryMixin, SpecificLocation, models.Model):
|
|||
result = super().details_display()
|
||||
result['display'].extend([
|
||||
(str(_('height')), self.height),
|
||||
(str(_('outside only')), str(_('yes') if self.outside else _('no'))),
|
||||
(str(_('outside only')), str(_('Yes') if self.outside else _('No'))),
|
||||
])
|
||||
result['editor_url'] = reverse('editor.spaces.detail', kwargs={'level': self.level_id, 'pk': self.pk})
|
||||
return result
|
||||
|
|
|
@ -104,8 +104,8 @@ class Location(LocationSlug, AccessRestrictionMixin, TitledMixin, models.Model):
|
|||
def details_display(self):
|
||||
result = super().details_display()
|
||||
result['display'].extend([
|
||||
(str(_('can be searched')), str(_('yes') if self.can_search else _('no'))),
|
||||
(str(_('can describe')), str(_('yes') if self.can_describe else _('no')))
|
||||
(str(_('searchable')), str(_('Yes') if self.can_search else _('No'))),
|
||||
(str(_('can describe')), str(_('Yes') if self.can_describe else _('No')))
|
||||
])
|
||||
return result
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue