mirror of
https://github.com/jazzband/django-defender.git
synced 2026-03-16 22:10:32 +00:00
release version 0.9.1
This commit is contained in:
parent
5f5b34d50e
commit
5d625dd273
4 changed files with 10 additions and 9 deletions
|
|
@ -2,10 +2,10 @@
|
|||
Changes
|
||||
=======
|
||||
|
||||
Unreleased
|
||||
----------
|
||||
0.9.1
|
||||
-----
|
||||
|
||||
* Fix failing tests for Django main development branch (Django 4.0)
|
||||
- Fix failing tests for Django main development branch (Django 4.0) [@JonathanWillitts]
|
||||
|
||||
0.9.0
|
||||
-----
|
||||
|
|
|
|||
10
README.rst
10
README.rst
|
|
@ -109,7 +109,7 @@ Requirements
|
|||
------------
|
||||
|
||||
* Python: 3.6, 3.7, 3.8, 3.9, PyPy
|
||||
* Django: 2.2, 3.x
|
||||
* Django: 2.2, 3.x, 4.x
|
||||
* Redis
|
||||
|
||||
|
||||
|
|
@ -495,12 +495,12 @@ Below is a sample ``BasicAuthenticationDefender`` class based on ``rest_framewor
|
|||
from rest_framework.authentication import (
|
||||
get_authorization_header,
|
||||
)
|
||||
|
||||
|
||||
# Get the UserModel
|
||||
UserModel = get_user_model()
|
||||
|
||||
|
||||
class BasicAuthenticationDefender(serializers.Serializer):
|
||||
|
||||
|
||||
username = serializers.CharField(required=False, allow_blank=True)
|
||||
email = serializers.EmailField(required=False, allow_blank=True)
|
||||
password = serializers.CharField(style={'input_type': 'password'})
|
||||
|
|
@ -645,7 +645,7 @@ To make it work add ``BasicAuthenticationDefender`` to ``REST_AUTH_SERIALIZERS``
|
|||
For example, in your settings.py add the below line,
|
||||
|
||||
.. code-block:: python
|
||||
|
||||
|
||||
REST_AUTH_SERIALIZERS = {
|
||||
'LOGIN_SERIALIZER': '<path to your basic authentication defender python file>.BasicAuthenticationDefender',
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,3 +1,3 @@
|
|||
VERSION = (0, 9, 0)
|
||||
VERSION = (0, 9, 1)
|
||||
|
||||
__version__ = ".".join((map(str, VERSION)))
|
||||
|
|
|
|||
1
setup.py
1
setup.py
|
|
@ -34,6 +34,7 @@ setup(
|
|||
"Framework :: Django :: 2.2",
|
||||
"Framework :: Django :: 3.1",
|
||||
"Framework :: Django :: 3.2",
|
||||
"Framework :: Django :: 4.0",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: Apache Software License",
|
||||
"Operating System :: OS Independent",
|
||||
|
|
|
|||
Loading…
Reference in a new issue