Skip to content
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

Missing DictField #2402

Closed
qwiglydee opened this issue Jan 12, 2015 · 5 comments
Closed

Missing DictField #2402

qwiglydee opened this issue Jan 12, 2015 · 5 comments

Comments

@qwiglydee
Copy link

Is there any reason why there exists ListField, but no DictField?

There is https://github.com/estebistec/drf-compound-fields indicating need of such stuff.

@carltongibson
Copy link
Collaborator

@qwiglydee Could you explain the case where you'd need this but wouldn't just use a nested serialiser?

@xordoquy
Copy link
Collaborator

@carltongibson probably json fields though there are easier workaround for it.

@tomchristie
Copy link
Member

Duplicate of #2106, which I'm now retitling to make it more clear.

@qwiglydee
Copy link
Author

I thought about native dict fields in mongodb/mongoengine.
But it is rather in focus of project django-rest-framework-mongoengine.

@tomchristie
Copy link
Member

DictField will support both.
The HStore mention is simply that Django 1.8's built-in HStore field will automatically be mapped to DictField by ModelSerializer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants