File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 8
8
"""
9
9
10
10
__title__ = 'Django REST framework'
11
- __version__ = '3.10.0 '
11
+ __version__ = '3.10.1 '
12
12
__author__ = 'Tom Christie'
13
13
__license__ = 'BSD 2-Clause'
14
14
__copyright__ = 'Copyright 2011-2019 Encode OSS Ltd'
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ class TokenAdmin(admin.ModelAdmin):
7
7
list_display = ('key' , 'user' , 'created' )
8
8
fields = ('user' ,)
9
9
ordering = ('-created' ,)
10
- autocomplete_fields = ('user' ,)
11
10
12
11
13
12
admin .site .register (Token , TokenAdmin )
Original file line number Diff line number Diff line change @@ -93,12 +93,16 @@ def distinct(queryset, base):
93
93
postgres_fields = None
94
94
95
95
96
- # coreapi is optional (Note that uritemplate is a dependency of coreapi)
96
+ # coreapi is required for CoreAPI schema generation
97
97
try :
98
98
import coreapi
99
- import uritemplate
100
99
except ImportError :
101
100
coreapi = None
101
+
102
+ # uritemplate is required for OpenAPI and CoreAPI schema generation
103
+ try :
104
+ import uritemplate
105
+ except ImportError :
102
106
uritemplate = None
103
107
104
108
You can’t perform that action at this time.
0 commit comments