From 5d625dd273a60dbcb7e794d048c995116c68a992 Mon Sep 17 00:00:00 2001 From: Ken Cochrane Date: Sun, 18 Jul 2021 09:31:51 -0400 Subject: [PATCH] release version 0.9.1 --- CHANGES.rst | 6 +++--- README.rst | 10 +++++----- defender/__init__.py | 2 +- setup.py | 1 + 4 files changed, 10 insertions(+), 9 deletions(-) diff --git a/CHANGES.rst b/CHANGES.rst index d4bbb8b..f14528c 100644 --- a/CHANGES.rst +++ b/CHANGES.rst @@ -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 ----- diff --git a/README.rst b/README.rst index 00f3eb5..fabd68e 100644 --- a/README.rst +++ b/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': '.BasicAuthenticationDefender', } diff --git a/defender/__init__.py b/defender/__init__.py index dd2df98..9def504 100644 --- a/defender/__init__.py +++ b/defender/__init__.py @@ -1,3 +1,3 @@ -VERSION = (0, 9, 0) +VERSION = (0, 9, 1) __version__ = ".".join((map(str, VERSION))) diff --git a/setup.py b/setup.py index 4e3206a..f262d01 100644 --- a/setup.py +++ b/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",