Fix a warning
Basically Django 5.0 will not allow us to split the delete() like have here as it will be used for HTTP delete. The recommended way is to put the deletion logic in the form_valid method, which is what we do here.
Basically Django 5.0 will not allow us to split the delete() like have here as it will be used for HTTP delete. The recommended way is to put the deletion logic in the form_valid method, which is what we do here.