remotes/origin/mitri4
spacenergy 10 years ago
parent 6a132cde5b
commit 00031933f6
  1. 3
      store/models.py

@ -259,7 +259,8 @@ class ProductVariation(models.Model):
return self.variation
def get_price(self, profile=None):
if profile and self.product.brand.slug in ['beuchat', 'scorpena']:
#import pdb; pdb.set_trace()
if profile and profile.is_authenticated() and self.product.brand.slug in ['beuchat', 'scorpena']:
return int(self.price - (self.price / Decimal(100) * Decimal(profile.sale)))
else:
print(profile)

Loading…
Cancel
Save