Re: Simple Form and Model question

2009-10-10 Thread LuisC
Ja!! That is it... Changed the view function name and it works... Very nice... thank you to everybody. Regards On Oct 10, 2:27 am, Karen Tracey wrote: > On Sat, Oct 10, 2009 at 2:04 AM, LuisC wrote: > > > Hi!!! > > I am having troubles saving my first model using a form: > > > My Model: > > C

Re: Simple Form and Model question

2009-10-09 Thread LuisC
Sorry about my ignorance but how would I give keyword arguments in the view? I just tried: BDbuff = Clientes(123,ClienteCodigo=form.cleaned_data ['ClienteCodigo'], ClienteNombre=form.cleaned_data ['ClienteNombre'], Cliente

Re: Simple Form and Model question

2009-10-09 Thread Karen Tracey
On Sat, Oct 10, 2009 at 2:04 AM, LuisC wrote: > > Hi!!! > I am having troubles saving my first model using a form: > > My Model: > Class Clientes(models.Model): >'Clase para Clientes' >ClienteCodigo = models.IntegerField('Codigo Cliente') >ClienteNombre = models.CharField('Nombre Clie

Re: Simple Form and Model question

2009-10-09 Thread Kenneth Gonsalves
On Saturday 10 Oct 2009 11:34:11 am LuisC wrote: > So, what is the argument Clientes() is specting??? Why in shell the > field list with values are the correct arguments?? you are using keyword arguments in the shell and positional arguments in the view - maybe that is the problem? -- regards

Simple Form and Model question

2009-10-09 Thread LuisC
Hi!!! I am having troubles saving my first model using a form: My Model: Class Clientes(models.Model): 'Clase para Clientes' ClienteCodigo = models.IntegerField('Codigo Cliente') ClienteNombre = models.CharField('Nombre Cliente',max_length=40) ClienteFechaCreacion = models.DateFie