Increased the required version of request-profiler and updated its patch file.

- Legacy-Id: 17922
This commit is contained in:
Henrik Levkowetz 2020-06-06 21:15:10 +00:00
parent 5139027170
commit 48d1cd8bb6
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
--- request_profiler.orig/models.py 2020-06-05 14:33:10.408859604 +0200 --- request_profiler.orig/models.py 2020-06-05 14:33:10.408859604 +0200
+++ request_profiler/models.py 2020-06-05 14:35:09.412282408 +0200 +++ request_profiler/models.py 2020-06-05 14:35:09.412282408 +0200
@@ -181,7 +181,7 @@ @@ -182,7 +182,7 @@
"""Extract values from HttpRequest and store locally.""" """Extract values from HttpRequest and store locally."""
self.request = request self.request = request
self.http_method = request.method self.http_method = request.method
@ -9,7 +9,7 @@
self.query_string = request.META.get("QUERY_STRING", "") self.query_string = request.META.get("QUERY_STRING", "")
self.http_user_agent = request.META.get("HTTP_USER_AGENT", "")[:400] self.http_user_agent = request.META.get("HTTP_USER_AGENT", "")[:400]
# we care about the domain more than the URL itself, so truncating # we care about the domain more than the URL itself, so truncating
@@ -189,11 +189,7 @@ @@ -190,11 +190,7 @@
self.http_referer = request.META.get("HTTP_REFERER", "")[:400] self.http_referer = request.META.get("HTTP_REFERER", "")[:400]
# X-Forwarded-For is used by convention when passing through # X-Forwarded-For is used by convention when passing through
# load balancers etc., as the REMOTE_ADDR is rewritten in transit # load balancers etc., as the REMOTE_ADDR is rewritten in transit
@ -22,7 +22,7 @@
# these two require middleware, so may not exist # these two require middleware, so may not exist
if hasattr(request, "session"): if hasattr(request, "session"):
self.session_key = request.session.session_key or "" self.session_key = request.session.session_key or ""
@@ -206,7 +202,10 @@ @@ -207,7 +203,10 @@
"""Extract values from HttpResponse and store locally.""" """Extract values from HttpResponse and store locally."""
self.response = response self.response = response
self.response_status_code = response.status_code self.response_status_code = response.status_code

View file

@ -19,7 +19,7 @@ django-markup>=1.1
django-oidc-provider>=0.7 django-oidc-provider>=0.7
django-password-strength>=1.2.1 django-password-strength>=1.2.1
django-referrer-policy>=1.0 django-referrer-policy>=1.0
django-request-profiler==0.14 # 0.15 and above requires Django 2.x django-request-profiler>=0.15 # 0.15 and above requires Django 2.x
django-simple-history>=2.3.0 django-simple-history>=2.3.0
django-stubs==1.3.0 django-stubs==1.3.0
django-tastypie>=0.14.1 # For Django 2.0. Django 2.1 will require 0.14.2; Django 3.0 will require 0.14.3 django-tastypie>=0.14.1 # For Django 2.0. Django 2.1 will require 0.14.2; Django 3.0 will require 0.14.3