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

Support lists #22

Open
skolsuper opened this issue Apr 21, 2016 · 2 comments
Open

Support lists #22

skolsuper opened this issue Apr 21, 2016 · 2 comments

Comments

@skolsuper
Copy link

As far as I can tell, this package doesn't support many=True on the basic fields. How should I include a field that is a list of strings in a serializer?

@clarkduvall
Copy link
Owner

The best way to do this would be to use a MethodField that returns the list of strings. Documentation for MethodField is here: http://serpy.readthedocs.io/en/latest/api.html#serpy.MethodField

@digitaldavenyc
Copy link

Is that really the best way to do this? I get that it works but it seems like it would make more sense to support many in other standard field types

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

3 participants