don't cast ugettext_lazy calls to str, as our json encoder is now clever
This commit is contained in:
parent
2d292844d6
commit
a7c140a2ac
7 changed files with 26 additions and 28 deletions
|
@ -52,7 +52,7 @@ class LevelGeometryMixin(GeometryMixin):
|
|||
def details_display(self):
|
||||
result = super().details_display()
|
||||
result['display'].insert(3, (
|
||||
str(_('Level')),
|
||||
_('Level'),
|
||||
{
|
||||
'id': self.level_id,
|
||||
'slug': self.level.get_slug(),
|
||||
|
@ -120,8 +120,8 @@ class Space(LevelGeometryMixin, SpecificLocation, models.Model):
|
|||
def details_display(self):
|
||||
result = super().details_display()
|
||||
result['display'].extend([
|
||||
(str(_('height')), self.height),
|
||||
(str(_('outside only')), str(_('Yes') if self.outside else _('No'))),
|
||||
(_('height'), self.height),
|
||||
(_('outside only'), _('Yes') if self.outside else _('No')),
|
||||
])
|
||||
result['editor_url'] = reverse('editor.spaces.detail', kwargs={'level': self.level_id, 'pk': self.pk})
|
||||
return result
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue