summaryrefslogtreecommitdiff
path: root/mirrors
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2014-11-08 14:04:31 -0600
committerDan McGee <dan@archlinux.org>2014-11-08 14:04:31 -0600
commit122273496a24c4608de776978b1b449d9c6cde09 (patch)
tree770a26478722ef2b6054c40d64c1e6f4e5d6cf4f /mirrors
parent713ab837ba59c4a7c0b60cb8e8be4b27f4520e52 (diff)
Make delay a property, not a function
And re-indent the URL details log template now that we've broken it out. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'mirrors')
-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