summaryrefslogtreecommitdiff
path: root/mirrors/models.py
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2015-04-15 22:00:57 -0400
committerLuke Shumaker <lukeshu@sbcglobal.net>2015-04-15 22:00:57 -0400
commit05430050147c87818c08373e9930756da4d6b5ac (patch)
tree24db1d6ca431ff64f91e3f41547b91687c4aedd7 /mirrors/models.py
parent86bd3d5e4920fd6d57ac51ed3abf02d2f368f2a7 (diff)
parent1a35cbe842212d674d83196ecfa70569ffe2e2da (diff)
Merge tag 'release_2014-11-08' into archweb-generic
Mirror status and details switch to Jinja2
Diffstat (limited to 'mirrors/models.py')
-rw-r--r--mirrors/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index 820f3328..9743d177 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -165,6 +165,7 @@ class MirrorLog(models.Model):
is_success = models.BooleanField(default=True)
error = models.TextField(blank=True, default='')
+ @property
def delay(self):
if self.last_sync is None:
return None