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
|
@ -36,8 +36,8 @@ class SerializableMixin(models.Model):
|
|||
return {
|
||||
'id': self.pk,
|
||||
'display': [
|
||||
(str(_('Type')), str(self.__class__._meta.verbose_name)),
|
||||
(str(_('ID')), str(self.pk)),
|
||||
(_('Type'), str(self.__class__._meta.verbose_name)),
|
||||
(_('ID'), str(self.pk)),
|
||||
]
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue