summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorThomas Stephenson <ovangle@gmail.com>2015-04-26 16:30:46 +1000
committerTim Graham <timograham@gmail.com>2015-07-14 09:13:22 -0400
commit035b0fa60da2e758d0ab7f9d04ef93cdb73c981f (patch)
tree4effeaa7efc8c9ac62bd32817daa3c5da750b7bf /tests
parent0ffa3943fbd100e7de7b1ddbfd301ddc52b57410 (diff)
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/serializers/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/serializers/models.py b/tests/serializers/models.py
index 5e7a31902e..4e2251ca18 100644
--- a/tests/serializers/models.py
+++ b/tests/serializers/models.py
@@ -141,7 +141,7 @@ class TeamField(models.CharField):
return Team(value)
def value_to_string(self, obj):
- return self._get_val_from_obj(obj).to_string()
+ return self.value_from_object(obj).to_string()
def deconstruct(self):
name, path, args, kwargs = super(TeamField, self).deconstruct()