Skip to content

Commit

Permalink
Update Job.save() signature for Django 1.2 compatibility.
Browse files Browse the repository at this point in the history
  • Loading branch information
Tim Graham committed Mar 14, 2011
1 parent 8aaab95 commit a439ae8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions chronograph/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __unicode__(self):
return _(u"%(name)s - disabled") % {'name': self.name}
return u"%s - %s" % (self.name, self.timeuntil)

def save(self, force_insert=False, force_update=False):
def save(self, *args, **kwargs):
if not self.disabled:
if not self.last_run:
self.last_run = datetime.now()
Expand All @@ -75,7 +75,7 @@ def save(self, force_insert=False, force_update=False):
else:
self.next_run = None

super(Job, self).save(force_insert, force_update)
super(Job, self).save(*args, **kwargs)

def get_timeuntil(self):
"""
Expand Down Expand Up @@ -182,7 +182,7 @@ def run(self, save=True):
stderr = stderr_str,
success = self.last_run_successful,
)

# If there was any output to stderr, e-mail it to any error (defualt) subscribers.
# We'll assume that if there was any error output, even if there was also info ouput
# That an error exists and needs to be dealt with
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setup(
name=app_name,
version='0.1.6',
version='0.1.7.1',
description='Django chronograph application.',
author='Weston Nielson',
author_email='wnielson@gmail.com',
Expand Down

0 comments on commit a439ae8

Please sign in to comment.