-
Notifications
You must be signed in to change notification settings - Fork 270
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JSONField is represented in Postgres 9.4 as Text #140
Comments
Hi, looks like the support for Postgres 'json' column type has been removed somewhere around version 1.0. More information here: #57 |
If you want the underlying column type to be json (jsonb actually) and you're using PostgreSQL >= 9.4, then your best bet is to use the native JSONField included in Django >= 1.9 https://docs.djangoproject.com/en/1.10/ref/contrib/postgres/fields/#jsonfield This module is still useful if you need to support JSON in databases other than Postgres or are creating a third party module that needs to be database agnostic. But if you're an end user using Postgres and want full-featured JSON support, use JSONField from Django. |
This should make it into the documentation. |
Good idea -- I added to the README. |
Hi,
I'm trying to use your library to get json type support in django. Here is my model:
and here is database table:
Why is attributes type is text? shouldn't it be json?
Thanks,
Feras
The text was updated successfully, but these errors were encountered: