django-ajax-validation
django-ajax-validation copied to clipboard
View needs to check for 'fields[]' instead of 'fields'?
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 )
I have this issue too
You guys are using jQuery dataTables plugin, right?
I'm not, actually I've never heard of it... :-)
then Nginx? :D thanks for answering
I've never heard of dataTables too ) I'm using nginx, but this issue occured on dev server too.
Same here. Also use nginx, but I ran into this issue while developing with the django built in web server.