additional-label json view: outputs '' instead of 'null'
This commit is contained in:
parent
fe4c97aac5
commit
fbbf96fe3c
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue