Advertisement
neonua666

Untitled

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