CTPUG / wafer

A wafer-thin web application for running small conferences. Built using Django.
ISC License
48 stars 27 forks source link

Custom talk deletion logic breaks with Django >= 4.0 #675

Closed drnlm closed 1 year ago

drnlm commented 1 year ago

The custom logic to turn talk deletions into withdrawals doesn't work with Django >= 4.0

Quoting from the Django 4 release notes

In accordance with FormMixin, object deletion for POST requests is handled in form_valid(). Custom delete logic in delete() handlers should be moved to form_valid(), or a shared helper method, as needed.

The change is mechanically fairly simple, but I still need to look how this works the older Dango releases we support.