Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- #coding=utf-8
- from alwaysdata.common.models import Reseller, Alert
- reseller = Reseller.objects.get(name='alwaysdata')
- for customer in reseller.customers.all():
- if customer.get_balance() <= 0:
- print customer
- #Alert.open(Alert.TYPES.CUSTOMER_MONEY, customer, "30,15,7", 30)
Add Comment
Please, Sign In to add comment