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