SHARE
TWEET

Untitled

pjmakey2 Jun 3rd, 2020 860 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. reparots = []
  2. for repartoobj in Repartos.objects.filter(reparto_numero__in=repartos):
  3.     if repartoobj.pedidosheader_set.filter(rendido_valor=False, pedido_tipo='PD').count() == repartoobj.pedidosheader_set.filter(pedido_tipo='PD').count():
  4.         print repartoobj.pedidosheader_set.filter(rendido_valor=False).update(cajaobj=None)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top