Nick Arnett wrote: > > > On Wed, Nov 11, 2009 at 6:48 AM, andreas schmid <a.schmi...@gmail.com > <mailto:a.schmi...@gmail.com>> wrote: > > > i would need something like: > > jan feb mar apr may > 2007 [...] [...] [...] [...] [...] > 2008 [...] [...] [...] [...] [...] > 2008 [...] [...] [...] [...] [...] > > i dont think a formset would be the right way to go in this case (but > maybe im wrong). > > > I think a formset is the right approach. I'm working on something > like this right now. One slightly tricky bit was to get the fields to > be in rows instead of one long column. The solution looks like this > in the template: > > {% for field in form.visible_fields %} > <td>{{ field }}</td> > {% endfor %} ok this is fine for the form representation but how should i extend my model to define the field i am going to multiply 12 times a year for x years? (actually im using generic create_update view to get the form out of the model)
and how should i store the values independently from each other? > > Now I'm trying to figure out how to get the "year" column data into > the form, dynamically from a model. > > Nick > > > --~--~---------~--~----~------------~-------~--~----~ > 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 > django-users+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/django-users?hl=en > -~----------~----~----~----~------~----~------~--~--- > -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=.