don't cast ugettext_lazy calls to str, as our json encoder is now clever

This commit is contained in:
Laura Klünder 2017-11-30 01:10:49 +01:00
parent 2d292844d6
commit a7c140a2ac
7 changed files with 26 additions and 28 deletions

View file

@ -97,7 +97,7 @@ class AccessRestrictionMixin(SerializableMixin, models.Model):
def details_display(self):
result = super().details_display()
result['display'].extend([
(str(_('Access Restriction')), self.access_restriction_id and self.access_restriction.title),
(_('Access Restriction'), self.access_restriction_id and self.access_restriction.title),
])
return result