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
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue