Re: newforms: How to make a Checkboxed user select list...
On 7/26/07, onno <[EMAIL PROTECTED]> wrote: > > On Jun 26, 9:57 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > > Jens Diemer schrieb: > > > > > I would like to make a newforms user select list, from every existing > > > django > > > users, looks like this: > > ... > This might be added to the docs.. I've been searching long on how to > do it! The newforms documentation is a work in progress. The documentation for widgets, and how/when to use them is one area we know is currently lacking. I have started on a rough draft but it is not yet ready for public consumption. Watch this space! :-) Yours, Russ Magee %-) --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: newforms: How to make a Checkboxed user select list...
On Jun 26, 9:57 am, Jens Diemer <[EMAIL PROTECTED]> wrote: > Jens Diemer schrieb: > > > I would like to make a newforms user select list, from every existing django > > users, looks like this: > > I have found a solution: > > class MailForm(forms.Form): > users = forms.ModelMultipleChoiceField( > queryset=User.objects.all(), > widget=forms.CheckboxSelectMultiple > ) > > =;-) > > -- > Mfg. > > Jens Diemer > > > A django powered CMS:http://www.pylucid.org This might be added to the docs.. I've been searching long on how to do it! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~--~~~~--~~--~--~---
Re: newforms: How to make a Checkboxed user select list...
Jens Diemer schrieb: > I would like to make a newforms user select list, from every existing django > users, looks like this: I have found a solution: class MailForm(forms.Form): users = forms.ModelMultipleChoiceField( queryset=User.objects.all(), widget=forms.CheckboxSelectMultiple ) =;-) -- Mfg. Jens Diemer A django powered CMS: http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~--~~~~--~~--~--~---
newforms: How to make a Checkboxed user select list...
I would like to make a newforms user select list, from every existing django users, looks like this: -- username1 - mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] username2 - mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] username3 - mailto:[EMAIL PROTECTED]">[EMAIL PROTECTED] -- I don't know how to make this. Has anyone a idea? -- Mfg. Jens Diemer A django powered CMS: http://www.pylucid.org --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~--~~~~--~~--~--~---