Skip to content

Commit 3451228

Browse files
authored
Removes default_app_config for Django Deprecation Warning (#1035)
* Removes default_app_config for Django Deprecation Warning * Update AUTHORS * Update __init__.py * import django * Install django so tox tests work * Pin mistune to fix docs
1 parent 401d856 commit 3451228

File tree

5 files changed

+9
-2
lines changed

5 files changed

+9
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
- name: Install Python dependencies
3838
run: |
3939
python -m pip install --upgrade pip
40-
python -m pip install --upgrade tox tox-gh-actions
40+
python -m pip install --upgrade tox tox-gh-actions django
4141
4242
- name: Tox tests
4343
run: |

AUTHORS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ Michael Howitz
4646
Paul Dekkers
4747
Paul Oswald
4848
Pavel Tvrdík
49+
Peter Carnesciali
4950
Rodney Richardson
5051
Rustem Saiargaliev
5152
Sandro Rodrigues

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
Django>=3.0,<3.1
22
oauthlib>=3.1.0
33
m2r>=0.2.1
4+
mistune<2
45
.

oauth2_provider/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import django
2+
3+
14
__version__ = "1.5.0"
25

3-
default_app_config = "oauth2_provider.apps.DOTConfig"
6+
if django.VERSION < (3, 2):
7+
default_app_config = "oauth2_provider.apps.DOTConfig"

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ deps =
6464
sphinx<3
6565
oauthlib>=3.1.0
6666
m2r>=0.2.1
67+
mistune<2
6768
sphinx-rtd-theme
6869
livedocs: sphinx-autobuild
6970
jwcrypto

0 commit comments

Comments
 (0)