I\'m writing a django model that allows my site to have coupons.
Coupons can have three types: lifetime account voucher, certain period of months voucher, certain numb
bool is a subclass of int because Python originally lacked bool, using int for Boolean, so:
bool
int
if self.months + self.dollars + self.lifetime > 1: ...
This works because False == 0 and True == 1 are both true.
False == 0
True == 1