On Oct 13, 9:41 pm, LuisC <lcapri...@gmail.com> wrote: > Daniel, > .get() was one of the several options I tried before with no > results... When I use .get() the form only displays the submit > button... I am asuming that that is because the template is specting > a dictionary and I am only supplying a value...
What exactly are you trying to do in this line: form = ClientesFIForm(clienteBuff) When you instantiate a form, you can do one of two things: instantiate an unbound form, possibly with initial data; or instantiate a bound form, with data usually from the request. You don't seem to be doing either here. Maybe you want to do this: form = ClientesFiForm(initial={ 'ClienteCodigo': clienteBuff.ClienteCodigo, 'ClienteNombre': clienteBuff.ClienteNombre, 'ClienteFechaCreacion': clienteBuff.ClienteFechaCreacion }) > Also, .get() only returs the" __str__" value, not the whole record.. > How would I obtaing the whole record,ie. all the fields??? No, it doesn't. get() gets the model instance. Please read the documentation. -- DR. --~--~---------~--~----~------------~-------~--~----~ 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 django-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---