alex / alex/django-ajax-validation
View needs to check for 'fields[]' instead of 'fields'?
オープン
- 主要言語
- 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 はまだ評価されていません。