aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework
diff options
context:
space:
mode:
authorStephan Groß2013-05-18 16:06:30 +0200
committerStephan Groß2013-05-18 16:06:30 +0200
commitb7176065a9aafb3d560f9e8c2e420bd4cc5841dc (patch)
tree4cd2673fd770fe1c2ac802aaaedeb76c9e766fe6 /rest_framework
parenteb9fdd04fceac322af92bd196293390270653ccd (diff)
downloaddjango-rest-framework-b7176065a9aafb3d560f9e8c2e420bd4cc5841dc.tar.bz2
Update getattr
Diffstat (limited to 'rest_framework')
-rw-r--r--rest_framework/serializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/rest_framework/serializers.py b/rest_framework/serializers.py
index 1b451f2d..338803fe 100644
--- a/rest_framework/serializers.py
+++ b/rest_framework/serializers.py
@@ -737,7 +737,7 @@ class ModelSerializer(Serializer):
if model_field.__class__ in attribute_dict:
attributes = attribute_dict[model_field.__class__]
for attribute in attributes:
- kwargs.update({attribute: model_field.__getattribute__(attribute)})
+ kwargs.update({attribute: getattr(model_field, attribute)})
try:
return self.field_mapping[model_field.__class__](**kwargs)