Advertisement
neonua666

Untitled

Mar 29th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.45 KB | None | 0 0
  1. surcharge_payments = user.surcharge_set.filter(
  2.                     Q(is_excluded=False) & (Q(summary_invoice=None) | ( Q(billing=None) & Q(reasons__invoice=None))) &
  3.                     (
  4.                         Q(package__order__is_paid=True) | Q(package__order__pay_with_invoice=True)
  5.                     ) &
  6.                     Q(package__isnull=False) &
  7.                     ~(Q(package__provider_name='gls') & Q(reasons=None))
  8.                 )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement