#DRF

9 messages · Page 1 of 1 (latest)

cinder hazel
#

Do you want this in DRF delete template or in the frontend ?

#

If in the frontend, you should do that in the frontend using HTML, only send the DELETE request when user clicks ok

lone oyster
#

No ,I wan to entend the DRF delete method if that’s possible.. without having to write new view and url for delete

cinder hazel
#

I don't think that is possible. DELETE method corresponds to HTTP Request DELETE and I don't think we can change them into 2 steps.

lone oyster
#

Ok thanks for responding 👍

iron grove
#

Generally speaking you would be using drf with a frontend framework where you wouldn’t have to write a new view and url

#

But even if you weren’t, a confirmation is easily achievable with simple css where a different view/url is not necessary

lone oyster