Re: Overriding the HTML id in ModelForm

2009-03-16 Thread Romain
Thanks a lot for the great answers, and the information about the form prefix (it is what I was looking for)! Sorry, I missed the replies 1 week ago :( Thanks again, Romain On Mar 6, 1:42 am, Eric Abrahamsen wrote: > On Mar 5, 2009, at 11:14 AM, Alex Gaynor wrote: > > > > >

Re: Overriding the HTML id in ModelForm

2009-03-05 Thread Eric Abrahamsen
On Mar 5, 2009, at 11:14 AM, Alex Gaynor wrote: > > On 3/4/09, Eric Abrahamsen wrote: >> >> >> On Mar 5, 2009, at 8:05 AM, Romain wrote: >> >>> >>> Hello, >>> >>> On the same page I have 2 ModelForm that happen to have an attribute >>> with the same name. Is it possible to

Re: Overriding the HTML id in ModelForm

2009-03-04 Thread Alex Gaynor
On 3/4/09, Eric Abrahamsen wrote: > > > On Mar 5, 2009, at 8:05 AM, Romain wrote: > >> >> Hello, >> >> On the same page I have 2 ModelForm that happen to have an attribute >> with the same name. Is it possible to choose the name of the HTML id >> generated by the form without

Re: Overriding the HTML id in ModelForm

2009-03-04 Thread Eric Abrahamsen
On Mar 5, 2009, at 8:05 AM, Romain wrote: > > Hello, > > On the same page I have 2 ModelForm that happen to have an attribute > with the same name. Is it possible to choose the name of the HTML id > generated by the form without having to change the real name of the > model attribute? A simple

Overriding the HTML id in ModelForm

2009-03-04 Thread Romain
Hello, On the same page I have 2 ModelForm that happen to have an attribute with the same name. Is it possible to choose the name of the HTML id generated by the form without having to change the real name of the model attribute? e.g. class A(models.Model): amount = models.IntegerField()