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
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---