Styria-Digital / django-rest-framework-jwt

JSON Web Token Authentication support for Django REST Framework
https://styria-digital.github.io/django-rest-framework-jwt/
MIT License
191 stars 57 forks source link

Fix RemovedInDjango41Warning on `default_app_config` #117

Open jonahgeorge opened 10 months ago

jonahgeorge commented 10 months ago

Since Django 3.2, the property has been deprecated as it is automatically detected by Django. Currently when django-rest-framework-jwt is loaded into a Django 3.2+ project, it throws deprecation warnings

The pattern in this PR can be found in other libraries that need to support wide ranges of Django versions: https://github.com/revsys/django-health-check/blob/master/health_check/db/__init__.py