Re: CharField as text?

2008-07-02 Thread Stuart Grimshaw

On Jul 1, 9:41 pm, Brian Luft <[EMAIL PROTECTED]> wrote:
> What is your purpose in defining a form field if it won't be used for
> user input?

I wanted to try and kee things simple (and look where that got me).

I have a list of players, and want to display them, with checkboxes
next to the names. I was following this example:

http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/

and could see a way to match the two lists in the view, so i moved all
the info I needed into the form class so I only needed 1 list of
objects.

-S
--~--~-~--~~~---~--~~
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: CharField as text?

2008-07-01 Thread Brian Luft

What is your purpose in defining a form field if it won't be used for
user input?


On Jul 1, 12:46 pm, Stuart  Grimshaw <[EMAIL PROTECTED]>
wrote:
> Is it possible (with newforms) to either display a CharField as just
> text, or have it's value used as the label on another field? I'm
> displaying names against checkboxes and I want the names to appear as
> the checkbox labels (or at least appear like they are)
>
> Any tips anyone?
>
> -S
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---