From be210f8fbcfc8f5f4d0859e53cd125b6038dc62a Mon Sep 17 00:00:00 2001 From: Timon Engelke Date: Thu, 3 Aug 2023 17:42:58 +0200 Subject: [PATCH] Do not remove author of gprot when it is blocked --- mafiasi/gprot/admin.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mafiasi/gprot/admin.py b/mafiasi/gprot/admin.py index c069a5d..7aabe1d 100644 --- a/mafiasi/gprot/admin.py +++ b/mafiasi/gprot/admin.py @@ -37,7 +37,6 @@ def block_view(self, request, object_id): messages.error(request, "Cannot block, not a PDF") else: to_block.published = False - to_block.owner = None to_block.save() pdf_filefield = to_block.content_pdf if not pdf_filefield: