We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e900605 commit 15957c9Copy full SHA for 15957c9
jsonfield/fields.py
@@ -139,12 +139,6 @@ def get_default(self):
139
# If the field doesn't have a default, then we punt to models.Field.
140
return super(JSONFieldBase, self).get_default()
141
142
- def db_type(self, connection):
143
- if connection.vendor == 'postgresql' and connection.pg_version >= 90300:
144
- return 'json'
145
- else:
146
- return super(JSONFieldBase, self).db_type(connection)
147
-
148
class JSONField(JSONFieldBase, models.TextField):
149
"""JSONField is a generic textfield that serializes/deserializes JSON objects"""
150
form_class = JSONFormField
0 commit comments