86👍
✅
http://docs.djangoproject.com/en/dev/ref/request-response/#django.http.QueryDict.getlist
request.POST.getlist('pass_id')
- [Django]-Django: save() vs update() to update the database?
- [Django]-How to override css in Django Admin?
- [Django]-Django select_related – when to use it
0👍
If you’re in a form, a better approach is:
posted = self.fields[field_name].widget.value_from_datadict(
self.data, self.files, self.add_prefix(field_name)
)
This will return a list if appropriate for the field, and apply cleaning, prefixing, etc. (I copied this from Django form form.cleaned_data
method.)
- [Django]-History of Django's popularity
- [Django]-Django how to partial render
- [Django]-Django Model – Get distinct value list
Source:stackexchange.com