Removed unneeded variable in contrib/postgres/fields/jsonb.py.
This commit is contained in:
parent
7e299c0e03
commit
1f10c3994c
|
@ -71,8 +71,7 @@ class JSONField(Field):
|
||||||
)
|
)
|
||||||
|
|
||||||
def value_to_string(self, obj):
|
def value_to_string(self, obj):
|
||||||
value = self.value_from_object(obj)
|
return self.value_from_object(obj)
|
||||||
return value
|
|
||||||
|
|
||||||
def formfield(self, **kwargs):
|
def formfield(self, **kwargs):
|
||||||
defaults = {'form_class': forms.JSONField}
|
defaults = {'form_class': forms.JSONField}
|
||||||
|
|
Loading…
Reference in New Issue