mirror of
https://github.com/encode/django-rest-framework.git
synced 2025-08-05 04:50:12 +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:
|
try:
|
||||||
# Check if present in user settings
|
# Check if present in user settings
|
||||||
val = self.user_settings[attr]
|
val = self.user_settings[0][attr]
|
||||||
except KeyError:
|
except KeyError:
|
||||||
# Fall back to defaults
|
# Fall back to defaults
|
||||||
val = self.defaults[attr]
|
val = self.defaults[attr]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user