django-rest-framework/rest_framework/authtoken
Jascha Geerds 161dc2df2c Call Django's authenticate function with the request object (#5295)
As of Django 1.11 the `authenticate` function accepts a request as an
additional argument. This commit fixes compatibility between newer Django
versions and custom authentication backends which already depend on the request
object.

See also:

[Django 1.11 release](https://docs.djangoproject.com/en/1.11/releases/1.11/)

```
authenticate() now passes a request argument to the authenticate() method of
authentication backends. Support for methods that don’t accept request as the
first positional argument will be removed in Django 2.1.
```
2017-10-05 10:43:49 +01:00
..
management Fix authtoken managment command (#5415) 2017-09-12 14:03:29 +01:00
migrations Clean up existing deprecation warnings. (#4166) 2016-06-02 14:39:10 +01:00
__init__.py enhancement #3886 Internationalization in admin interface rest_framework.authtoken 2016-02-01 13:20:16 +05:00
admin.py Cleanup import following PEP 8 style guide 2015-06-25 16:10:17 -04:00
apps.py enhancement #3886 Internationalization in admin interface rest_framework.authtoken 2016-02-01 13:20:16 +05:00
models.py Update links after moving to encode org 2017-04-07 10:28:35 -04:00
serializers.py Call Django's authenticate function with the request object (#5295) 2017-10-05 10:43:49 +01:00
views.py Call Django's authenticate function with the request object (#5295) 2017-10-05 10:43:49 +01:00