
Am trying to display a pre-selected checkbox in Django : option = forms.BooleanField(required=False, initial=True) but the checkbox shows up un-checked. Google yields nothing. Any help will be much appreciated .

Assuming the above is from your forms.py, for beginners, does it have a ';' at the end? Then the best place for Django troubleshooting is http://stackoverflow.com , you get answers faster from experts

You mean whether its option = forms.BooleanField(required=False,initial=True) ; Sorry, didn't quite get you. On 17 March 2011 05:34, Dennis Kioko <dmbuvi@gmail.com> wrote:
Assuming the above is from your forms.py, for beginners, does it have a ';' at the end?

Ah, never mind. I'll head over to stackoverflow On 17 March 2011 05:37, Ndungi Kyalo <ndungi@gmail.com> wrote:
You mean whether its
option = forms.BooleanField(required=False,initial=True) ;
Sorry, didn't quite get you.
On 17 March 2011 05:34, Dennis Kioko <dmbuvi@gmail.com> wrote:
Assuming the above is from your forms.py, for beginners, does it have a ';' at the end?

Perhaps this question should be directed to the nairobi python user group mailing list ? http://groups.google.com/group/naipug On Thu, Mar 17, 2011 at 12:38 PM, Ndungi Kyalo <ndungi@gmail.com> wrote:
Ah, never mind. I'll head over to stackoverflow
On 17 March 2011 05:37, Ndungi Kyalo <ndungi@gmail.com> wrote:
You mean whether its option = forms.BooleanField(required=False,initial=True) ;
Sorry, didn't quite get you.

yeah in case it does, why dont you set the default value in your models.py instead ?
participants (3)
-
ashok+skunkworks@parliaments.info
-
Dennis Kioko
-
Ndungi Kyalo