DRF-dataTable-Example-server-side icon indicating copy to clipboard operation
DRF-dataTable-Example-server-side copied to clipboard

Edit and Delete

Open michael132 opened this issue 7 years ago • 4 comments

Hello,

this is more of a question not an issue. I don't see you implement these two methods(Edit and Delete) in views nor add them in urls.py

How do they work?

michael132 avatar Jan 24 '18 20:01 michael132

@michael132 Edit and Delete and PUT , In the DRF has been implemented, the get method needs to be additionally written because of the need to match DataTables .

Edit and Delete and PUT , Please refer to https://github.com/twtrubiks/django-rest-framework-tutorial

twtrubiks avatar Jan 26 '18 01:01 twtrubiks

@twtrubiks Hi, I have implemented your example with mysql, everything works fine but searching sorting and pagination is not working please tell me what could be the reason for this ? I have commented on your youtube channel you gave one github link but not able to understand that. Can you explain me in plain english ?

Adity14a avatar May 06 '19 06:05 Adity14a

@Adity14a I fixed it, mainly because of the relationship between django>2 and djangorestframework, the new settings are slightly different. https://github.com/twtrubiks/DRF-dataTable-Example-server-side/tree/django_2_and_mysql_5.7

twtrubiks avatar May 11 '19 10:05 twtrubiks

hello @twtrubiks still don't see delete method in views nor in urls

zam20 avatar Jun 09 '21 21:06 zam20