Fix AC-1202... when marking a schedule as inactive also mark it as disabled. When filtering schedules for what should run make sure we exclude inactive schedules also

This commit is contained in:
Matthew Jones
2014-04-17 10:14:47 -04:00
parent a49c627e53
commit f06dde4fa3
2 changed files with 4 additions and 2 deletions

View File

@@ -23,7 +23,7 @@ __all__ = ['Schedule']
class ScheduleFilterMethods(object):
def enabled(self, enabled=True):
return self.filter(enabled=enabled)
return self.filter(enabled=enabled, active=enabled)
def before(self, dt):
return self.filter(next_run__lt=dt)