Skip to content

Commit

Permalink
Removed native JSON datatype support from PostgreSQL
Browse files Browse the repository at this point in the history
See #57 for more
information
  • Loading branch information
bradjasper committed Sep 4, 2014
1 parent e900605 commit 15957c9
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions jsonfield/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -139,12 +139,6 @@ def get_default(self):
# If the field doesn't have a default, then we punt to models.Field.
return super(JSONFieldBase, self).get_default()

def db_type(self, connection):
if connection.vendor == 'postgresql' and connection.pg_version >= 90300:
return 'json'
else:
return super(JSONFieldBase, self).db_type(connection)

class JSONField(JSONFieldBase, models.TextField):
"""JSONField is a generic textfield that serializes/deserializes JSON objects"""
form_class = JSONFormField
Expand Down

0 comments on commit 15957c9

Please sign in to comment.