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

Document parsing lists in query strings; remove duck typing #407

Merged
merged 2 commits into from
Jul 24, 2019

Conversation

sloria
Copy link
Member

@sloria sloria commented Jul 24, 2019

close #406

@@ -65,7 +65,11 @@ class Meta(object):

def is_multiple(field):
"""Return whether or not `field` handles repeated/multi-value arguments."""
return isinstance(field, ma.fields.List) and not hasattr(field, "delimiter")
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We probably did this to avoid the circular import. Was a bad decision in retrospect.

@sloria sloria merged commit d5c5ac5 into dev Jul 24, 2019
@sloria sloria deleted the delimitedlist-improvements branch July 24, 2019 02:48
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

Successfully merging this pull request may close these issues.

Improve documentation on fields.DelimitedList vs fields.List
1 participant