I have a form
class NetworkForm(forms.Form):
choices = []
for network in Network.objects.all():
choices.append((
network.id,
network.name))
network =
forms.CharField(widget=forms.CheckboxSelectMultiple(choices=choices))
and in view i called this network form by
network_form = NetworkForm()
My problem is i want to set initial value for the given network
CheckboxSelectMultiple field..
Is there is any way to go it?
Thanks in advance
cschand