From 035b0fa60da2e758d0ab7f9d04ef93cdb73c981f Mon Sep 17 00:00:00 2001 From: Thomas Stephenson Date: Sun, 26 Apr 2015 16:30:46 +1000 Subject: Fixed #24716 -- Deprecated Field._get_val_from_obj() The method duplicates the functionality of Field.value_from_object() and has the additional downside of being a privately named public API method. --- django/core/serializers/python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/core/serializers/python.py') 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. -- cgit v1.3