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
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
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
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
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
5 matches
Mail list logo