From 4fa02443f76991c361bd69b042e4991ec7820554 Mon Sep 17 00:00:00 2001 From: Filipp Lepalaan Date: Tue, 22 Sep 2015 00:01:26 +0300 Subject: Added manager field to location --- servo/management/commands/cron.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'servo/management/commands/cron.py') 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) -- cgit v1.2.3