How to include delete function in UpdateView instead a DeleteView

2018-08-10 Thread zengkeat
I have a UpdateView for editing a post, but instead of making a DeleteView for delete a post, i try to make UpdateView include a function to delete the post. So ,i want to edit and delete a post in UpdateView. Is that possible ? form_valid() missing 1 required positional argument: 'pk' views.

How to include delete function in UpdateView instead a DeleteView

2018-08-10 Thread zengkeat
down vofavori I have a UpdateView for editing a post, but instead of making a DeleteView for delete a post, i try to make UpdateView include a function to delete the post. So ,i wa