summaryrefslogtreecommitdiff
path: root/django/contrib/postgres/fields/jsonb.py
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 /django/contrib/postgres/fields/jsonb.py
parent0ffa3943fbd100e7de7b1ddbfd301ddc52b57410 (diff)
downloaddjango-035b0fa60da2e758d0ab7f9d04ef93cdb73c981f.tar.gz
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 'django/contrib/postgres/fields/jsonb.py')
-rw-r--r--django/contrib/postgres/fields/jsonb.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/django/contrib/postgres/fields/jsonb.py b/django/contrib/postgres/fields/jsonb.py
index eaf3e98d36..d580ea2efd 100644
--- a/django/contrib/postgres/fields/jsonb.py
+++ b/django/contrib/postgres/fields/jsonb.py
@@ -50,7 +50,7 @@ class JSONField(Field):
)
def value_to_string(self, obj):
- value = self._get_val_from_obj(obj)
+ value = self.value_from_object(obj)
return value
def formfield(self, **kwargs):