diff --git a/CHANGELOG.md b/CHANGELOG.md index 0fdfc584c..31341fa75 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,22 @@ ## Unreleased +## Version 4.7.2 + +* Fix BrowsableAPIRenderer needing `media_type` ([#426](https://github.com/jazzband/django-rest-framework-simplejwt/pull/426)) +* Fix blacklist migrations for multiple databases ([#429](https://github.com/jazzband/django-rest-framework-simplejwt/pull/429)) +* Fix Django 3.2 `default_app_config` deprecation ([#415](https://github.com/jazzband/django-rest-framework-simplejwt/pull/415)) +* Fix docs specifying `INSTALLED_APPS` for SimpleJWT iff you want translations ([#420](https://github.com/jazzband/django-rest-framework-simplejwt/pull/420)) +* Fix drf-yasg API Schema generation for `TokenRefreshSerializer` ([#396](https://github.com/jazzband/django-rest-framework-simplejwt/pull/396)) +* Fix invalid syntax in docs for `INSTALLED_APPS` ([#416](https://github.com/jazzband/django-rest-framework-simplejwt/pull/416)) + +Translations: +* Added Dutch translations ([#422](https://github.com/jazzband/django-rest-framework-simplejwt/pull/422)) +* Added Ukrainian translations ([#423](https://github.com/jazzband/django-rest-framework-simplejwt/pull/423)) +* Added Simplified Chinese translations ([#427](https://github.com/jazzband/django-rest-framework-simplejwt/pull/427)) + ## Version 4.7.1 -* Fixed user-generated migration file bug in token_blacklist ([#410]((https://github.com/jazzband/django-rest-framework-simplejwt/pull/411))) +* Fixed user-generated migration file bug in token_blacklist ([#411](https://github.com/jazzband/django-rest-framework-simplejwt/pull/411)) ## Version 4.7.0 @@ -17,9 +31,11 @@ * Added support for PyJWT>=2.0.0 ([#329](https://github.com/jazzband/django-rest-framework-simplejwt/pull/329)) * Restored Python 3.7 support ([#332](https://github.com/jazzband/django-rest-framework-simplejwt/pull/332)) -* Added Indonesian translations ([#316](https://github.com/jazzband/django-rest-framework-simplejwt/pull/316)) * Fixed Django 4.0 re_path deprecation ([#280](https://github.com/jazzband/django-rest-framework-simplejwt/pull/280)) +Translations: +* Added Indonesian translations ([#316](https://github.com/jazzband/django-rest-framework-simplejwt/pull/316)) + ## Version 4.5 * Added `AUTH_HEADER_NAME` to settings ([#309](https://github.com/jazzband/django-rest-framework-simplejwt/pull/309)) diff --git a/rest_framework_simplejwt/__init__.py b/rest_framework_simplejwt/__init__.py index 2319b05b6..6929b410c 100644 --- a/rest_framework_simplejwt/__init__.py +++ b/rest_framework_simplejwt/__init__.py @@ -1,4 +1,4 @@ -from pkg_resources import get_distribution, DistributionNotFound +from pkg_resources import DistributionNotFound, get_distribution try: __version__ = get_distribution("djangorestframework_simplejwt").version diff --git a/rest_framework_simplejwt/locale/id_ID/LC_MESSAGES/django.mo b/rest_framework_simplejwt/locale/id_ID/LC_MESSAGES/django.mo index acd95fcbc..33f3f669f 100644 Binary files a/rest_framework_simplejwt/locale/id_ID/LC_MESSAGES/django.mo and b/rest_framework_simplejwt/locale/id_ID/LC_MESSAGES/django.mo differ diff --git a/rest_framework_simplejwt/locale/pt_BR/LC_MESSAGES/django.mo b/rest_framework_simplejwt/locale/pt_BR/LC_MESSAGES/django.mo index 5cef90039..7592fcb28 100644 Binary files a/rest_framework_simplejwt/locale/pt_BR/LC_MESSAGES/django.mo and b/rest_framework_simplejwt/locale/pt_BR/LC_MESSAGES/django.mo differ diff --git a/rest_framework_simplejwt/locale/ru_RU/LC_MESSAGES/django.mo b/rest_framework_simplejwt/locale/ru_RU/LC_MESSAGES/django.mo index ebb74c4b5..ce573f204 100644 Binary files a/rest_framework_simplejwt/locale/ru_RU/LC_MESSAGES/django.mo and b/rest_framework_simplejwt/locale/ru_RU/LC_MESSAGES/django.mo differ diff --git a/rest_framework_simplejwt/locale/zh_Hans/LC_MESSAGES/django.mo b/rest_framework_simplejwt/locale/zh_Hans/LC_MESSAGES/django.mo index 9cfd50d05..0d5f317f2 100644 Binary files a/rest_framework_simplejwt/locale/zh_Hans/LC_MESSAGES/django.mo and b/rest_framework_simplejwt/locale/zh_Hans/LC_MESSAGES/django.mo differ diff --git a/rest_framework_simplejwt/token_blacklist/migrations/0010_fix_migrate_to_bigautofield.py b/rest_framework_simplejwt/token_blacklist/migrations/0010_fix_migrate_to_bigautofield.py index 0f554b343..e2ae85e9f 100644 --- a/rest_framework_simplejwt/token_blacklist/migrations/0010_fix_migrate_to_bigautofield.py +++ b/rest_framework_simplejwt/token_blacklist/migrations/0010_fix_migrate_to_bigautofield.py @@ -1,6 +1,5 @@ # Generated by Django 3.2.3 on 2021-05-27 17:46 -import os, fnmatch from pathlib import Path from django.db import migrations, models @@ -15,14 +14,14 @@ class Migration(migrations.Migration): ] operations = [ - migrations.AlterField( - model_name='blacklistedtoken', - name='id', - field=models.BigAutoField(primary_key=True, serialize=False), - ), - migrations.AlterField( - model_name='outstandingtoken', - name='id', - field=models.BigAutoField(primary_key=True, serialize=False), - ), + migrations.AlterField( + model_name='blacklistedtoken', + name='id', + field=models.BigAutoField(primary_key=True, serialize=False), + ), + migrations.AlterField( + model_name='outstandingtoken', + name='id', + field=models.BigAutoField(primary_key=True, serialize=False), + ), ] diff --git a/rest_framework_simplejwt/token_blacklist/migrations/0011_linearizes_history.py b/rest_framework_simplejwt/token_blacklist/migrations/0011_linearizes_history.py index 6fb4fd815..623c964be 100644 --- a/rest_framework_simplejwt/token_blacklist/migrations/0011_linearizes_history.py +++ b/rest_framework_simplejwt/token_blacklist/migrations/0011_linearizes_history.py @@ -2,7 +2,7 @@ import os from pathlib import Path -from django.db import migrations, models +from django.db import migrations, models # noqa F401 parent_dir = Path(__file__).resolve(strict=True).parent diff --git a/tests/test_token_blacklist.py b/tests/test_token_blacklist.py index 58c4aca4d..6912a9799 100644 --- a/tests/test_token_blacklist.py +++ b/tests/test_token_blacklist.py @@ -204,4 +204,3 @@ def test_outstandingtoken_id_field_is_biagauto_field(self): def test_blacklistedtoken_id_field_is_biagauto_field(self): BlacklistedToken = self.apps.get_model('token_blacklist', 'BlacklistedToken') assert isinstance(BlacklistedToken._meta.get_field('id'), BigAutoField) -