attpcdaq.daq.views.api.set_observable_ordering

attpcdaq.daq.views.api.set_observable_ordering(request)[source]

An AJAX request that sets the order in which observables are displayed.

The request should be submitted via POST, and the request body should be JSON encoded. The content should be be dictionary with the key “new_order” mapped to a list of Observable primary keys in the desired order.

Parameters:request (HttpRequest) – The request with the information given above. Must be POST.
Returns:If successful, the JSON data {'success': True} is returned.
Return type:JsonResponse