I'll take you at your word that you have a list of file (names?), rather than
a queryset.
class xxx(forms.Form):
def __init__(self, list_of_files, *args, **kwargs):
self.fields['files'].choices = enumerate(list_of_files)
super(xxx, self).__init__(*args, **kwargs)
files = forms.M
I have a list of files I'd like to render as a list of check boxes
with multiple selection. Then from the frontend I want to add the
ability to save and delete these files. How can I achieve this using
CheckboxSelectMultiple() widget ?
Thanks
--
You received this message because you are subscribe
2 matches
Mail list logo