Fix deprecation warning on Django 1.10
This change is compatible with supported versions (1.8 and greater).
This commit is contained in:
parent
2d3515a490
commit
f63f14d65e
|
@ -97,7 +97,7 @@ class JSONField(models.Field):
|
|||
return json.dumps(value, **self.encoder_kwargs)
|
||||
|
||||
def value_to_string(self, obj):
|
||||
return self._get_val_from_obj(obj)
|
||||
return self.value_from_object(obj)
|
||||
|
||||
|
||||
class NoPrepareMixin(object):
|
||||
|
|
Loading…
Reference in New Issue