summaryrefslogtreecommitdiffstats
path: root/main
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-24 01:48:39 +0200
committerDan McGee <dan@archlinux.org>2011-06-24 01:49:30 +0200
commit388973d6fd082148c85db0df44e0ee5ed3b6a54b (patch)
treed3dec9c0b981d9b3d8e9968f00aa5e70db5316f2 /main
parentdcbee21c1ba281b061db302056c771936925c824 (diff)
downloadarchweb-388973d6fd082148c85db0df44e0ee5ed3b6a54b.tar.gz
archweb-388973d6fd082148c85db0df44e0ee5ed3b6a54b.tar.xz
Revert "Remove unused flagged() manager method"
Far from unneeded, this is used on the developer dashboard. Silly me. Document this fact as well in the code so we don't screw it up again. This reverts commit 2a44855556531a27e949884d4084c6e5d37082e1.
Diffstat (limited to 'main')
-rw-r--r--main/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index a5d6c42..05e63fe 100644
--- a/main/models.py
+++ b/main/models.py
@@ -73,6 +73,10 @@ class TodolistManager(models.Manager):
return self.filter(todolistpkg__complete=False).distinct()
class PackageManager(models.Manager):
+ def flagged(self):
+ """Used by dev dashboard."""
+ return self.filter(flag_date__isnull=False)
+
def normal(self):
return self.select_related('arch', 'repo')