alex / alex/django-ajax-validation

View needs to check for 'fields[]' instead of 'fields'?

オープン
#11 コメント 6 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
Python
スター
251
フォーク
57
PR マージ指標
30日以内にマージされた PR はありません

説明

Maybe this has just something to do with the version of jQuery or django i'm using, but for me the validation of individual fields doesn't work until I change the two mentions of 'fields' to 'fields[]' in views.py. So it becomes:

if request.POST.getlist('fields[]'):
fields = request.POST.getlist('fields[]') + ['**all**']

instead of:

if request.POST.getlist('fields'):
fields = request.POST.getlist('fields') + ['**all**']

(i accidentally closed a copy of this issue and can't figure out how to open it, so I'm creating a new one :-p )

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。