summaryrefslogtreecommitdiff
path: root/django/core/serializers/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'django/core/serializers/python.py')
-rw-r--r--django/core/serializers/python.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/core/serializers/python.py b/django/core/serializers/python.py
index 55c6292343..ff506d50cb 100644
--- a/django/core/serializers/python.py
+++ b/django/core/serializers/python.py
@@ -45,7 +45,7 @@ class Serializer(base.Serializer):
return data
def handle_field(self, obj, field):
- value = field._get_val_from_obj(obj)
+ value = field.value_from_object(obj)
# Protected types (i.e., primitives like None, numbers, dates,
# and Decimals) are passed through as is. All other values are
# converted to string first.