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

Selecting multiple genres in create venue or artist sends only the first value #88

Closed
ak-seyam opened this issue Sep 13, 2020 · 1 comment

Comments

@ak-seyam
Copy link

Expected Behavior :

getting a comma-separated string values when i use request.form['genres']

Actual Behavior:

getting only the first selected genre

Steps to reproduce:

  • use the form to add or edit a venue or an artist
  • on controller-tier try inspecting request.form['genres'] at '/{artist or venue}/create' route

I know almost nothing about WT Forms and used the solution in #54 to fix the create page but when I saw this line I guessed that the result should be in comma-separated format
code snippet says placeholder = comma-separated values line new_artist.html line 32

@ak-seyam
Copy link
Author

you should use form.getlist('key') instead of directly calling the key from the form

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

1 participant