mirror of
https://github.com/jazzband/django-axes.git
synced 2026-03-16 22:30:23 +00:00
Fix DRF integration links
This commit is contained in:
parent
1fa76eb526
commit
2e984f9fdd
1 changed files with 6 additions and 5 deletions
|
|
@ -67,13 +67,14 @@ You also need to decorate ``dispatch()`` and ``form_invalid()`` methods of the A
|
|||
Integration with Django REST Framework
|
||||
--------------------------------------
|
||||
|
||||
Modern versions of Django REST Framework after 3.7.0 work normally with Axes.
|
||||
.. note::
|
||||
Modern versions of Django REST Framework after 3.7.0 work normally with Axes
|
||||
out-of-the-box and require no customization in DRF.
|
||||
|
||||
Django REST Framework versions prior to
|
||||
[3.7.0](https://github.com/encode/django-rest-framework/commit/161dc2df2ccecc5307cdbc05ef6159afd614189e)
|
||||
require the request object to be passed for authentication.
|
||||
|
||||
``example/authentication.py``::
|
||||
Django REST Framework versions prior to 3.7.0
|
||||
require the request object to be passed for authentication
|
||||
by a customized DRF authentication class::
|
||||
|
||||
from rest_framework.authentication import BasicAuthentication
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue