misc: fix additional label json view to work on lazy gettext strings (#9212)

This commit is contained in:
Frédéric Péters 2015-12-05 17:15:07 +01:00
parent e732fc0cb7
commit a478ee212c
1 changed files with 1 additions and 1 deletions

View File

@ -276,7 +276,7 @@ def page_order(request):
def page_get_additional_label(request, page_pk, cell_reference):
cell = CellBase.get_cell(cell_reference, page_id=page_pk)
response = HttpResponse(content_type='application/json')
json.dump({'label': cell.get_additional_label() or ''}, response)
json.dump({'label': force_text(cell.get_additional_label()) or ''}, response)
return response