> I like it too, but aren't you still stuck with validating it or are you > applying a validator to each field you generate this way?
I'm not sure that I understand the question but this is how I create new fields self.fields['ticket_%s' % ticket['id']] = forms.IntegerField(label = '', initial = 0, min_value = 0, max_value = self._max_tickets_count) and there are validation rules - integer value from 0 to _max_tickets_count On Feb 15, 9:24 pm, Mike Ramirez <gufym...@gmail.com> wrote: > On Tuesday, February 15, 2011 01:31:07 am ju wrote: > > > Thank you very much for you answer > > > I prefer to use validation that form class provides for me... > > I do too. > > > I tried to use <input ... name="ticket_count_{{ ticket.id }}" /> but > > the other problem that I have is that I can't get errors for each > > field of form :( > > . > > There is another solution that I decide to use: > >http://stackoverflow.com/questions/4993625/django-templates-form-fiel... > > -as-variable > > I like it too, but aren't you still stuck with validating it or are you > applying a validator to each field you generate this way? > > Mike > -- > A physicist is an atom's way of knowing about atoms. > -- George Wald -- 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.