-
-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to send data via POST? #69
Comments
did you try adding that key value to https://github.com/izimobil/django-rest-framework-datatables/blob/master/example/albums/templates/albums/albums.html#L65 ? |
I just did, the same result as in my app. Console says |
At the moment this is not possible, but it could be easily done by replacing
If you manage to make it work, feel free to open a PR with tests included. Thanks. |
Thanks for that. I tried to make it work but didn't manage. I am getting 403 on my API endpoint after making that change in
I am not sure if problem is that code or my ModelViewSet endpoint. |
Is there any update regarding the possibility of integrating pull request #70, which seems to be related to this? I had planned to use this package, but the environment I'm working in has limits on query strings, which makes using GET requests only a challenge. |
Now DRF-Datatables can handle requests via POST, as explained here: https://datatables.net/examples/server_side/post.html
Fixed ! |
Hi there,
thanks for that great app, it works perfect. Unfortunately DataTables.js, when sending request to DRF API endpoint puts a lot of parameters to URL. That really clogs up logs. There is simple solution, to this problem: send parameters via POST request, described here: https://stackoverflow.com/questions/33862482.
Is it possible to achieve that with DRFD, make it work with POST as well as GET?
Thanks!
The text was updated successfully, but these errors were encountered: