Skip to content

Commit

Permalink
Support standalone DeleteAPIs
Browse files Browse the repository at this point in the history
  • Loading branch information
stevelacey committed Jul 13, 2022
1 parent 89c03a5 commit c8cbd68
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion worf/views/delete.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
from worf.lookups import FindInstance
from worf.views.base import AbstractBaseAPI


class DeleteAPI(AbstractBaseAPI):
class DeleteAPI(FindInstance, AbstractBaseAPI):
def delete(self, *args, **kwargs):
self.destroy(*args, **kwargs)
return self.render_to_response("", 204)
Expand Down

0 comments on commit c8cbd68

Please sign in to comment.