On Jul 14, 2:40 pm, Rajesh Dhawan <[EMAIL PROTECTED]> wrote:
> Hi,
>
> On Jul 14, 3:32 pm, tosh <[EMAIL PROTECTED]> wrote:
>
> > i'm using newforms admin branch. i have a form and auto_id="%s".
> > everything works fine on the initial load. However, If there is a
> > validation error when the form is redisplayed i get id_ prepended to
> > my form ids. is there some way to control this or am i missing
> > something? thanks
>
> In your view, you are typically instantiating your form class twice:
>
> Once, when the form is first displayed (request method is GET), and a
> second time, when the form is posted (request method is POST). Based
> on your above description, it seems that you are setting the auto_id
> parameter only during the GET call and not during the POST call.
>
> -Rajesh D


well that's a little embarrassing but exactly right. thanks
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to