mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-04 20:40:14 +03:00
fix TypeError: list indices must be integers, not str
This commit is contained in:
parent
18cdfcd712
commit
a7b9a1f704
|
@ -201,7 +201,7 @@ class APISettings(object):
|
|||
|
||||
try:
|
||||
# Check if present in user settings
|
||||
val = self.user_settings[attr]
|
||||
val = self.user_settings[0][attr]
|
||||
except KeyError:
|
||||
# Fall back to defaults
|
||||
val = self.defaults[attr]
|
||||
|
|
Loading…
Reference in New Issue
Block a user