Don't remove news articles when attached email is removed
authorMagnus Hagander <magnus@hagander.net>
Wed, 11 Nov 2020 14:35:44 +0000 (15:35 +0100)
committerMagnus Hagander <magnus@hagander.net>
Wed, 11 Nov 2020 14:36:51 +0000 (15:36 +0100)
commit47e1ef2bcecadbed9ab98a4bc2bbd1bf6793f337
tree02f687a5b21dbdac8879711ed3535f216c82880f
parent03bc2603ec58bbd5f8709548e2ccc3e1b7b4f1aa
Don't remove news articles when attached email is removed

At this point, we set the field to PROTECTED and dont' allow the
deletion at all. In the future we might want to allow a set null
operation, but for now we require the users to contact webmaster@ to
handle that, so we keep it under control.
pgweb/core/forms.py
pgweb/news/migrations/0006_sending_email.py
pgweb/news/models.py