dashboard: always save autogenerated tiles (#26359)

This commit is contained in:
Frédéric Péters 2018-09-12 11:29:44 +02:00
parent 83cba8d3a5
commit 63fac47058
1 changed files with 4 additions and 4 deletions

View File

@ -121,10 +121,10 @@ def dashboard_auto_tile(request, *args, **kwargs):
for key in cell_form_keys:
cell.parameters[key] = request_body.get(key)
if request.user.is_authenticated():
# save cell if the user is connected, so it can be added to the
# dashboard
cell.save()
# save cell so it can be reused later, for example to be added to
# dashboard, or to be used as reference in another page, etc.
cell.save()
return render_cell(request, cell=cell)