Browse Source

Oprava filtru

middleware_test
MaM Web user 3 years ago
parent
commit
2995f5fa8b
  1. 4
      various/log_filters.py

4
various/log_filters.py

@ -21,5 +21,7 @@ class StripSensitiveFormDataFilter(Filter):
reverse('reset_password_complete'), reverse('reset_password_complete'),
reverse('change_password'), reverse('change_password'),
]: ]:
record.request.POST=[] if record.request.method == 'POST':
from django.http import QueryDict
record.request.POST=QueryDict('OriginalPostData=HaveBeenRemoved')
return 1 return 1

Loading…
Cancel
Save