From 2995f5fa8b184c2cab03024f938dfefbbdb51507 Mon Sep 17 00:00:00 2001 From: MaM Web user Date: Tue, 7 Sep 2021 19:30:35 +0200 Subject: [PATCH] Oprava filtru --- various/log_filters.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/various/log_filters.py b/various/log_filters.py index b5167142..f20e032c 100644 --- a/various/log_filters.py +++ b/various/log_filters.py @@ -21,5 +21,7 @@ class StripSensitiveFormDataFilter(Filter): reverse('reset_password_complete'), reverse('change_password'), ]: - record.request.POST=[] + if record.request.method == 'POST': + from django.http import QueryDict + record.request.POST=QueryDict('OriginalPostData=HaveBeenRemoved') return 1