Ticket #25532: 0001-Fix-issue-in-JSONField.patch
File 0001-Fix-issue-in-JSONField.patch, 496 bytes (added by , 9 years ago) |
---|
-
django/contrib/postgres/forms/jsonb.py
a b class JSONField(forms.CharField): 15 15 kwargs.setdefault('widget', forms.Textarea) 16 16 super(JSONField, self).__init__(**kwargs) 17 17 18 def bound_data(self, data, initial): 19 return json.loads(data) 20 18 21 def to_python(self, value): 19 22 if value in self.empty_values: 20 23 return None