On Mar 6, 1:42 am, Eric Abrahamsen <
gir...@gmail.com> wrote:
> On Mar 5, 2009, at 11:14 AM, Alex Gaynor wrote:
>
>
>
>
>
> > On 3/4/09, Eric Abrahamsen <
gir...@gmail.com> 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 theHTMLid
> >>> generated by the form without having to change the real name of the
> >>> model attribute?
>
> >> A simple solution would be to instantiate your ModelForms with a
> >> prefix:
> >>
http://docs.djangoproject.com/en/dev/ref/forms/api/#prefixes-for-
> >> forms
>
> >> Another, finer-grained choice is using the auto_id argument: