Projet

Général

Profil

0001-dashboard-include-dashboard-add-url-in-autotile-resp.patch

Frédéric Péters, 23 mai 2019 16:21

Télécharger (1,03 ko)

Voir les différences:

Subject: [PATCH] dashboard: include dashboard add url in autotile response
 (#33380)

 combo/apps/dashboard/views.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
combo/apps/dashboard/views.py
125 125
    # dashboard, or to be used as reference in another page, etc.
126 126
    cell.save()
127 127

  
128
    return render_cell(request, cell=cell)
128
    response = render_cell(request, cell=cell)
129
    response['x-add-to-dashboard-url'] = reverse(
130
                'combo-dashboard-add-tile',
131
                kwargs={'cell_reference': cell.get_reference()})
132
    return response
129 133

  
130 134

  
131 135
def dashboard_reorder_tiles(request, *args, **kwargs):
132
-