Re: Foreing Key field going null in INSERT sql when use inlineformset

2013-01-25 Thread Fellipe Henrique
I can't use AutoField, because I need to use my StoreProcedure. I use this StoreProcedure in my Delphi application. T.·.F.·.A.·. S+F *Fellipe Henrique P. Soares* *"Quemadmodum gladius neminem occidit, occidentis telum est."* (Epistulae morales ad Lucilium

Re: Foreing Key field going null in INSERT sql when use inlineformset

2013-01-25 Thread Anderson
Hi Felipe try autoField is auto increment. On Fri, Jan 25, 2013 at 4:53 AM, Fellipe Henrique wrote: > I have this models: > > > class Pedido(models.Model): > idvenda_pedido = models.IntegerField(verbose_name=u"Código", > primary_key=True, null=False) > num_nota = models.IntegerField(verb

Foreing Key field going null in INSERT sql when use inlineformset

2013-01-25 Thread Fellipe Henrique
I have this models: class Pedido(models.Model): idvenda_pedido = models.IntegerField(verbose_name=u"Código", primary_key=True, null=False) num_nota = models.IntegerField(verbose_name=u'Nº Nota', blank=True, null=True) class ItensPedido(models.Model): idvenda_pedido_itens = models.Int