mirror of https://github.com/zulip/zulip.git
errors: Remove build_request_repr logic.
This interface is no longer supported in Django 1.10.
This commit is contained in:
parent
dea281557d
commit
7e0ce22808
|
@ -3,7 +3,7 @@ from __future__ import absolute_import
|
||||||
from typing import Any
|
from typing import Any
|
||||||
|
|
||||||
from django.views.debug import SafeExceptionReporterFilter
|
from django.views.debug import SafeExceptionReporterFilter
|
||||||
from django.http import HttpRequest, build_request_repr
|
from django.http import HttpRequest
|
||||||
|
|
||||||
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
|
class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
|
||||||
def get_post_parameters(self, request):
|
def get_post_parameters(self, request):
|
||||||
|
@ -16,13 +16,3 @@ class ZulipExceptionReporterFilter(SafeExceptionReporterFilter):
|
||||||
if var in filtered_post:
|
if var in filtered_post:
|
||||||
filtered_post[var] = '**********'
|
filtered_post[var] = '**********'
|
||||||
return filtered_post
|
return filtered_post
|
||||||
|
|
||||||
def get_request_repr(self, request):
|
|
||||||
# type: (HttpRequest) -> str
|
|
||||||
if request is None:
|
|
||||||
return repr(None)
|
|
||||||
else:
|
|
||||||
return build_request_repr(request,
|
|
||||||
POST_override=self.get_post_parameters(request),
|
|
||||||
COOKIES_override="**********",
|
|
||||||
META_override="**********")
|
|
||||||
|
|
Loading…
Reference in New Issue