SelectDatewidget does not shows the correct value

2008-04-01 Thread Rocio Figueroa
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 --~--~-~--~~

Re: customize forms

2008-03-27 Thread Rocio Figueroa
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

Re: customize forms

2008-03-26 Thread Rocio Figueroa
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

Re: customize forms

2008-03-26 Thread Rocio Figueroa
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

customize forms

2008-03-25 Thread Rocio Figueroa
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