-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
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
Support PostgreSQL JSONField #3170
Labels
Milestone
Comments
According to the Roadmap https://code.djangoproject.com/wiki/Version1.9Roadmap the alpha for 1.9 is not due for another two months. Final release is a while after that. DRF support for JSONField will be in line with that. |
carltongibson
changed the title
hi,not support JSONField
Support PostgreSQL JSONField (Django 1.9)
Jul 18, 2015
@carltongibson thank you :) |
tomchristie
changed the title
Support PostgreSQL JSONField (Django 1.9)
Support PostgreSQL JSONField
Jul 22, 2015
There's still at least some work to do here...
But yes, using DictField will give you 90% of what you need already. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hi thank you very much
,
DRF not support JSONField, but Django 1.9 support JSONField
url: https://docs.djangoproject.com/en/dev/ref/contrib/postgres/fields/#jsonfield
i use django 1.9 ,DRF 3.13 ,Postgresql 9.4
My database table fields: [i use postgresql]
i created custom JSONField in DRF
My Serializer:
then :
i run
i can get 'id' field value, but i canot get username value, it's return null
if i changed My Serializer code like this:
i run
is it ok!
but it's return all jsonInfo field value
i hope , i can use JSONField(source='jsonInfo__username')
i only want get username
can you help me ?
thank you very much
:)
The text was updated successfully, but these errors were encountered: