aboutsummaryrefslogtreecommitdiffstats
path: root/servo/management/commands
diff options
context:
space:
mode:
authorFilipp Lepalaan <filipp@mac.com>2015-09-22 00:01:26 +0300
committerFilipp Lepalaan <filipp@mac.com>2015-09-22 00:01:26 +0300
commit4fa02443f76991c361bd69b042e4991ec7820554 (patch)
tree2be34e630c42ad0a0331954de88882cdbbdb6f0a /servo/management/commands
parentb09a4a45552a96f1cdfd3f22e7465da9856aa2d0 (diff)
downloadServo-4fa02443f76991c361bd69b042e4991ec7820554.tar.gz
Servo-4fa02443f76991c361bd69b042e4991ec7820554.tar.bz2
Servo-4fa02443f76991c361bd69b042e4991ec7820554.zip
Added manager field to location
Diffstat (limited to 'servo/management/commands')
-rwxr-xr-xservo/management/commands/cron.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/servo/management/commands/cron.py b/servo/management/commands/cron.py
index fc6c4ce..d1b2806 100755
--- a/servo/management/commands/cron.py
+++ b/servo/management/commands/cron.py
@@ -116,7 +116,8 @@ class Command(BaseCommand):
subject = _(u"Products stocked below limit")
if Configuration.notify_location():
- send_table(sender, l.email, subject, table)
+ email = l.manager.email if l.manager else l.email
+ send_table(sender, email, subject, table)
if Configuration.notify_email_address():
send_table(sender, conf['notify_address'], subject, table)