improve field display description

This commit is contained in:
Laura Klünder 2017-11-22 18:23:08 +01:00
parent feabf040a0
commit 494c68e08a
2 changed files with 3 additions and 3 deletions

View file

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

View file

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