summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-23 18:48:39 -0500
committerDan McGee <dan@archlinux.org>2011-06-23 18:49:30 -0500
commit388973d6fd082148c85db0df44e0ee5ed3b6a54b (patch)
treed3dec9c0b981d9b3d8e9968f00aa5e70db5316f2
parentdcbee21c1ba281b061db302056c771936925c824 (diff)
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.
-rw-r--r--main/models.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/main/models.py b/main/models.py
index a5d6c42e..05e63fed 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')