diff --git a/docs/tutorial.rst b/docs/tutorial.rst index db984d5..496cf4b 100644 --- a/docs/tutorial.rst +++ b/docs/tutorial.rst @@ -389,6 +389,33 @@ Using DataTables via POST method By default, the Ajax request that DataTables makes to obtain server-side processing data is an HTTP GET request. However, there are times when you might wish to use POST, DRF-Datatables can handle this, just configure your Datatable as explained in the `related Datatables documentation section `_. +**Note:** Depending on your `CSRF Protection settings `_, Django might require a CSRF token to authorize any `POST` call. You might need to inject that token on the POST call from the client-side. + +.. code:: html + + + ... + + {% csrf_token %} + + + + Handling Duplicates in Sorting ------------------------------