Re: Tricky newforms problem

2008-04-11 Thread Brian Morton
Thanks. This works perfectly. Is there a better way to implement what I am trying to do? Also, does anyone know how I can capture these elements again in the view when processing the form? Since there are an arbitrary number of fields for songs, I don't know how many I should be looking for

Re: Tricky newforms problem

2008-04-11 Thread Phil Davis
On 11/04/2008, Brian Morton <[EMAIL PROTECTED]> wrote: [...] > The problem occurs in the template. I am trying to differentiate > these fields from the other normal fields on the form for presentation > purposes. I have tried assigning a custom property to each of the > dynamic fields. > >

Tricky newforms problem

2008-04-10 Thread Brian Morton
I have run into an interesting problem with newforms. I am trying to create an arbitrary number of fields on a form based on model data. This works fine. class SonglistForm(forms.Form): def __init__(self, *args, **kwargs): super(SonglistForm, self).__init__(*args,