I'm with this code  in views

form_pedido = PedidoForm(request.POST, instance=v_pedido)
        formset_itens = ItensInlineFormSet(request.POST, request.FILES, 
instance=v_pedido)

        if form_pedido.is_valid() and formset_itens.is_valid():


            pedido = form_pedido.save(commit=False)
            itens_pedido = formset_itens.save(commit=False)



            v_vlrtotal = 0
            for i in itens_pedido :
                i.vlr_total = i.qtde * i.vlr_unit
                v_vlrtotal += i.vlr_total


and when I arrive at is that being itens_pedido is empty

  formset_itens = ItensInlineFormSet (request.POST, request.FILES, instance 
= v_pedido)


  formset_itens contains items can someone help me




-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/72aa1b16-2fe8-4cba-a05f-d2a57dd3cde2%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to