> Try using a multiplemodelchoice field with a checkboxselectmultiple widget.
>
> Alex
Ok thanks, I've changed forms.py like this:
-- forms.py --
class BookForm(forms.Form):
book_item = forms.ModelMultipleChoiceField
(queryset=Book.objects.all(),
widget=forms.CheckboxSelectMultiple)
But the problem how to access at the fields of book in the template"
still remain
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---