Skip to content

BSModalDeleteView generates warning in Django 4 #192

@christianwgd

Description

@christianwgd

Object will be deleted, but the redirection to the views success_url doesn't work. Instead you get a warning

python3.10/site-packages/django/views/generic/base.py:62: DeleteViewCustomDeleteWarning:
DeleteView uses FormMixin to handle POST requests. As a consequence, any custom deletion logic in
BlogPostDeleteView.delete() handler should be moved to form_valid().
  self = cls(**initkwargs)

Simply downgrading django to 3.2.11 makes it work again.

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions