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, Achieve customize fields and recover data from the instance, except in the date field UsuarioForm = forms.models.form_for_instance(usuario) UsuarioForm.base_fields['registro'].widget = SelectDateWidget() the correct data not shown this, only shows January 1, 2008 In this field should be accomplished something special?? thanks Rocio --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---