django-rest-framework/rest_framework
Adam Johnson 7921e9af43
Fix RemovedInDjango40Warning for middleware get_resopnse() (#7513)
Fixes #7417.

Fixes all these issues seen with `tox -e py38-django31`:

```
  /Users/chainz/Documents/Projects/django-rest-framework/tests/test_request.py:208: RemovedInDjango40Warning: Passing None for the middleware get_response argument is deprecated.
    SessionMiddleware().process_request(self.wrapped_request)

tests/test_requests_client.py: 1 test with warning
tests/test_testing.py: 4 tests with warnings
tests/test_throttling.py: 1 test with warning
tests/authentication/test_authentication.py: 4 tests with warnings
tests/browsable_api/test_browsable_api.py: 4 tests with warnings
  /Users/chainz/Documents/Projects/django-rest-framework/rest_framework/authentication.py:139: RemovedInDjango40Warning: Passing None for the middleware get_response argument is deprecated.
    check = CSRFCheck()
```
2020-10-09 10:48:03 +01:00
..
authtoken Merge pull request #7481 from smithdc1/app-config 2020-10-06 22:16:29 +02:00
locale Version 3.10 (#6802) 2019-07-15 12:31:09 +01:00
management Add file option to generateschema (#7130) 2020-02-12 20:35:54 +01:00
schemas Fix schema typo (#7491) 2020-08-24 03:44:34 -07:00
static/rest_framework jquery 3.5.1 (#7313) 2020-05-11 13:08:40 +01:00
templates/rest_framework Drop urlize_quoted_links (#7548) 2020-09-23 15:39:06 +01:00
templatetags Drop urlize_quoted_links (#7548) 2020-09-23 15:39:06 +01:00
utils Remove unnecessary type conversions (#7526) 2020-09-08 15:42:01 +01:00
__init__.py Merge pull request #7481 from smithdc1/app-config 2020-10-06 22:16:29 +02:00
apps.py Make DEFAULT_PAGINATION_CLASS None by default. (#5170) 2017-09-25 15:36:30 +02:00
authentication.py Fix RemovedInDjango40Warning for middleware get_resopnse() (#7513) 2020-10-09 10:48:03 +01:00
checks.py Fix punctuation in system check (#7281) 2020-04-20 16:40:05 -07:00
compat.py isort v5 (#7484) 2020-08-17 13:26:56 -07:00
decorators.py Improve the docstring on @action (#6951) 2019-12-11 15:08:54 -08:00
documentation.py Updated url()'s with path() and re_path() (#7492) 2020-08-25 13:50:02 +02:00
exceptions.py replace force_text with force_str 2019-08-07 21:05:24 +02:00
fields.py Fix NullBooleanField warning (#7565) 2020-09-30 13:47:06 +01:00
filters.py Fix SearchFilter.must_call_distinict for annotation+m2m (#7146) 2020-05-11 10:55:39 +01:00
generics.py Allow context to be provided to get_serializer (#7298) 2020-04-29 11:19:44 +01:00
metadata.py replace force_text with force_str 2019-08-07 21:05:24 +02:00
mixins.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
negotiation.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
pagination.py Remove unnecessary type conversions (#7526) 2020-09-08 15:42:01 +01:00
parsers.py replace force_text with force_str 2019-08-07 21:05:24 +02:00
permissions.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
relations.py Fix pk-only optimization for properties (#7142) 2020-09-03 11:49:15 +01:00
renderers.py Drop urlize_quoted_links (#7548) 2020-09-23 15:39:06 +01:00
request.py Fix Request docstring kwarg names (#7443) 2020-08-05 16:51:06 -07:00
response.py Remove unnecessary bytes() calls (#6626) 2019-05-30 15:05:27 -07:00
reverse.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
routers.py Updated url()'s with path() and re_path() (#7492) 2020-08-25 13:50:02 +02:00
serializers.py corrects typographical error in line 118 (#7553) 2020-09-28 08:52:17 +01:00
settings.py Add note that APISettings is an internal class (#7144) 2020-01-15 10:52:29 +00:00
status.py Adding I'm a teapot error code (#7081) 2019-12-10 09:18:35 +00:00
test.py Not include charset when charset is None (#7400) 2020-07-07 09:58:32 +01:00
throttling.py Dropped Python 2 compatibility. (#6615) 2019-04-30 17:53:44 +02:00
urlpatterns.py Updated url()'s with path() and re_path() (#7492) 2020-08-25 13:50:02 +02:00
urls.py Replace all url() calls with path() or re_path() (#7512) 2020-09-08 15:32:27 +01:00
validators.py Make CharField prohibit surrogate characters (#7026) (#7067) 2020-01-06 14:12:21 +00:00
versioning.py Replace all url() calls with path() or re_path() (#7512) 2020-09-08 15:32:27 +01:00
views.py Pass custom code to PermissionDenied if permission class had one set (#7306) 2020-05-01 10:22:36 +01:00
viewsets.py Check extra action func.__name__ (#7098) 2020-08-05 21:29:47 -07:00