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

Personal fix for issue: #2566 #2624

Closed
wants to merge 2 commits into from
Closed

Conversation

rvanlaar
Copy link

@rvanlaar rvanlaar commented Mar 2, 2015

When an HTML form is used to submit data to DRF this function parse_html_list is called.
This functions can't parse a list of strings.

To work around this, post the data as a valid JSON list:

["example string 1", "test string 2"]

This list is parsed as JSON and returned. Thus allowing a formdata with a list to be submitted.

When an HTML form is used to submit data to DRF this function parse_html_list is called.
This functions can't parse a list of strings.

To work around this, post the data as a valid JSON list: 

```["example string 1", "test string 2"]```

This list is parsed as JSON and returned. Thus allowing a formdata with a list to be submitted.
@tomchristie tomchristie closed this Mar 2, 2015
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.

2 participants