0
0
mirror of https://github.com/django/django.git synced 2024-11-30 23:20:50 +01:00

Removed unneeded variable in contrib/postgres/fields/jsonb.py.

This commit is contained in:
Dmitry Dygalo 2017-01-16 12:24:16 +01:00 committed by Tim Graham
parent 7e299c0e03
commit 1f10c3994c

View File

@ -71,8 +71,7 @@ class JSONField(Field):
)
def value_to_string(self, obj):
value = self.value_from_object(obj)
return value
return self.value_from_object(obj)
def formfield(self, **kwargs):
defaults = {'form_class': forms.JSONField}