Hello
Within a form, a field date:
UserForm = forms.models.form_for_instance(user)
UserForm.base_fields [ 'record'].widget = SelectDateWidget()
Does not shows the correct value, always shows the value of January 1,
2008, showing how to make the correct value
Thanks
--~--~-~--~~
2008/3/26, Juanjo Conti <[EMAIL PROTECTED]>:
> form_for_instance
>
> Your example will be:
>
>
> def edit(request, u_id):
> usuario = Usuario.objects.get(id=u_id)
>
> form = form_for_instance(usuario)()
>
> return render_to_response('usuario/usuarioEdit.html', {'form':form})
hi
2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>:
>
> 2008/3/26, Rocio Figueroa <[EMAIL PROTECTED]>:
>
> >
> > 2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>:
> >
> > >
> > > You could generate the form based on the mo
2008/3/26, Esteban Saavedra L. <[EMAIL PROTECTED]>:
>
> You could generate the form based on the model:
>
> UsuarioForm = forms.models.form_for_model(Usuario)
>
> And then customize each field both at the views and the template to
> put an order or special effect
>
howto i customize each field
Hello friends of the list, and I started to do some testing Newforms.
I tried to generate forms from the model automatically and Also
customizing forms manually (by specifying Characteristics of each
field).
Now my query is as follows: in a form that is Manually (by specifying
fields and characte
5 matches
Mail list logo