summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-11-12 16:41:28 +0100
committerDan McGee <dan@archlinux.org>2012-11-12 16:41:28 +0100
commit55d2d3ae51e1d0aa0927d682b45a3500588ed07b (patch)
tree1c1b9f9247300219eb0ef1186bc9b16150dfad8e
parent99bfdda5f257107396179694b7c56aad8e5e6701 (diff)
downloadarchweb-55d2d3ae51e1d0aa0927d682b45a3500588ed07b.tar.gz
archweb-55d2d3ae51e1d0aa0927d682b45a3500588ed07b.tar.xz
Add get_latest_by to MirrorLog Meta class
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r--mirrors/models.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/mirrors/models.py b/mirrors/models.py
index 06b483d..384668b 100644
--- a/mirrors/models.py
+++ b/mirrors/models.py
@@ -131,5 +131,6 @@ class MirrorLog(models.Model):
class Meta:
verbose_name = 'mirror check log'
+ get_latest_by = 'check_time'
# vim: set ts=4 sw=4 et: