diff --git a/store/models.py b/store/models.py index 3778eab..e6d3e42 100644 --- a/store/models.py +++ b/store/models.py @@ -184,9 +184,9 @@ class Product(models.Model): retval = self.variations.aggregate(Min('price'))['price__min'] or 0 if retval > 20000: - return retval * Decimal('.95') + return int(retval * Decimal('.95')) else: - return retval * Decimal('.93') + return int(retval * Decimal('.93')) def get_absolute_url(self): retval = '/store/' @@ -219,9 +219,9 @@ class ProductVariation(models.Model): def get_price(self): if self.price > 20000: - return self.price * Decimal('.95') + return int(self.price * Decimal('.95')) else: - return self.price * Decimal('.93') + return int(self.price * Decimal('.93')) class AttributesInProduct(models.Model):