From 9aba8319d69c638d7b8f287ac723b69d7ce0e2ef Mon Sep 17 00:00:00 2001 From: spacenergy Date: Wed, 9 Mar 2016 13:28:45 +0600 Subject: [PATCH] auto --- store/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/store/models.py b/store/models.py index 31eb5ba..cdb5126 100644 --- a/store/models.py +++ b/store/models.py @@ -260,7 +260,7 @@ class ProductVariation(models.Model): def get_price(self, profile=None): #import pdb; pdb.set_trace() - #from django.core.mail import mail_admins + from django.core.mail import mail_admins mail_admins('auth', '{} {}'.format(profile, self.product.brand.slug)) if profile and profile.is_authenticated() and self.product.brand.slug in ['beuchat', 'scorpena'] and profile.sale: return int(self.price - (self.price / Decimal(100) * Decimal(profile.sale)))