Re: More Advanced Forms Help

2008-04-07 Thread yml

Hello,
Your particular situation look to me very similar to the Poll, Choice
sample presented on this blog :
http://collingrady.wordpress.com/2008/02/18/editing-multiple-objects-in-django-with-newforms/
I hope this will help you.
--yml

On Apr 6, 2:29 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> Thanks to all who made suggestions before.  Now I have another problem I
> have been unable to find a way to solve in Django.  Here's the scenario:
> I have the variable games, which contains (oddly enough) games
> I have the variable stadium_forms, which contains a form for each game that
> displays a check box
>
> I want to do something like this
>
> {% for game in games %}
> (display info about game)
>  (display form in stadium_forms that belongs to the game) 
> {% endfor %}
>
> For every item in 'games' there is a corresponding item in 'stadium_forms'
>
> I found this page to be helpful in figuring out how to build the
> stadium_forms variable:
>
> http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/
>
> Any tips on how to make this work would be greatly appreciated.
>
> --
> Chris Hartjes
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



More Advanced Forms Help

2008-04-05 Thread Chris Hartjes
Thanks to all who made suggestions before.  Now I have another problem I
have been unable to find a way to solve in Django.  Here's the scenario:
I have the variable games, which contains (oddly enough) games
I have the variable stadium_forms, which contains a form for each game that
displays a check box

I want to do something like this

{% for game in games %}
(display info about game)
 (display form in stadium_forms that belongs to the game) 
{% endfor %}

For every item in 'games' there is a corresponding item in 'stadium_forms'

I found this page to be helpful in figuring out how to build the
stadium_forms variable:

http://www.pointy-stick.com/blog/2008/01/06/django-tip-complex-forms/

Any tips on how to make this work would be greatly appreciated.

-- 
Chris Hartjes

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