Guest User

Untitled

a guest
Apr 20th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.32 KB | None | 0 0
  1. #!/usr/bin/env python
  2. #coding=utf-8
  3.  
  4. from alwaysdata.common.models import Reseller, Alert
  5.  
  6. reseller = Reseller.objects.get(name='alwaysdata')
  7.  
  8. for customer in reseller.customers.all():
  9.     if customer.get_balance() <= 0:
  10.         print customer
  11.         #Alert.open(Alert.TYPES.CUSTOMER_MONEY, customer, "30,15,7", 30)
Add Comment
Please, Sign In to add comment