Skip to content

Commit

Permalink
Revert back the JSON native field type from PG 9.2 to PG 9.3, because…
Browse files Browse the repository at this point in the history
… it causes more problems than it solves. PG 9.2 support seems incomplete.
  • Loading branch information
Olivier Cortès committed Jun 27, 2013
1 parent c21b183 commit c2b5907
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jsonfield/fields.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def get_default(self):
return super(JSONFieldBase, self).get_default()

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

0 comments on commit c2b5907

Please sign in to comment.