Re: initial data for formset

2009-05-27 Thread adrian
Thanks. I've set extra=0 and added an element to the list, and now the last form on the page is half-initialized - the date is set but the time is not! What could cause that?? On May 26, 9:20 pm, Sam Chuparkoff wrote: > On Tue, 2009-05-26 at 17:27 -0700, adrian wrote: > > This code creates a f

Re: initial data for formset

2009-05-26 Thread Sam Chuparkoff
On Tue, 2009-05-26 at 17:27 -0700, adrian wrote: > This code creates a formset and populates fields with copies of > date and start_time. > The problem is, if num_events is X then it creates X forms but it only > populates X-1 (it leaves the last one uninitialized). My question > is why, and h

initial data for formset

2009-05-26 Thread adrian
This code creates a formset and populates fields with copies of date and start_time. The problem is, if num_events is X then it creates X forms but it only populates X-1 (it leaves the last one uninitialized). My question is why, and how to fix it? Thanks. DateTimeFormSet = for