additional-label json view: outputs '' instead of 'null'

This commit is contained in:
Thomas NOËL 2015-05-29 18:53:14 +02:00
parent fe4c97aac5
commit fbbf96fe3c
1 changed files with 1 additions and 1 deletions

View File

@ -275,7 +275,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()}, response)
json.dump({'label': cell.get_additional_label() or ''}, response)
return response