File tree Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Expand file tree Collapse file tree 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change 7
7
\_| \_\____/\____/ \_/ |_| |_| \__,_|_| |_| |_|\___| \_/\_/ \___/|_| |_|\_|
8
8
"""
9
9
10
+ import django
11
+
10
12
__title__ = 'Django REST framework'
11
13
__version__ = '3.11.0'
12
14
__author__ = 'Tom Christie'
22
24
# Default datetime input and output formats
23
25
ISO_8601 = 'iso-8601'
24
26
25
- default_app_config = 'rest_framework.apps.RestFrameworkConfig'
27
+
28
+ if django .VERSION < (3 , 2 ):
29
+ default_app_config = 'rest_framework.apps.RestFrameworkConfig'
26
30
27
31
28
32
class RemovedInDRF313Warning (DeprecationWarning ):
Original file line number Diff line number Diff line change 1
- default_app_config = 'rest_framework.authtoken.apps.AuthTokenConfig'
1
+ import django
2
+
3
+ if django .VERSION < (3 , 2 ):
4
+ default_app_config = 'rest_framework.authtoken.apps.AuthTokenConfig'
You can’t perform that action at this time.
0 commit comments