diff options
author | Thomas Stephenson <ovangle@gmail.com> | 2015-04-26 16:30:46 +1000 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2015-07-14 09:13:22 -0400 |
commit | 035b0fa60da2e758d0ab7f9d04ef93cdb73c981f (patch) | |
tree | 4effeaa7efc8c9ac62bd32817daa3c5da750b7bf /django/contrib/postgres/fields/jsonb.py | |
parent | 0ffa3943fbd100e7de7b1ddbfd301ddc52b57410 (diff) | |
download | django-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.py | 2 |
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): |