Skip to content

Commit 15957c9

Browse files
committed
Removed native JSON datatype support from PostgreSQL
See #57 for more information
1 parent e900605 commit 15957c9

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

jsonfield/fields.py

-6
Original file line numberDiff line numberDiff line change
@@ -139,12 +139,6 @@ def get_default(self):
139139
# If the field doesn't have a default, then we punt to models.Field.
140140
return super(JSONFieldBase, self).get_default()
141141

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-
148142
class JSONField(JSONFieldBase, models.TextField):
149143
"""JSONField is a generic textfield that serializes/deserializes JSON objects"""
150144
form_class = JSONFormField

0 commit comments

Comments
 (0)