From 2e984f9fdd6d5068467e4f6d5b93f33adf282693 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aleksi=20Ha=CC=88kli?= Date: Sun, 19 May 2019 17:02:50 +0300 Subject: [PATCH] Fix DRF integration links --- docs/6_integration.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/6_integration.rst b/docs/6_integration.rst index 0157587..e1c607c 100644 --- a/docs/6_integration.rst +++ b/docs/6_integration.rst @@ -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