summaryrefslogtreecommitdiffstats
path: root/todolists/models.py
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2013-05-11 01:42:00 +0200
committerDan McGee <dan@archlinux.org>2013-05-11 01:44:25 +0200
commitdad70d0d7c70e7973cd9e3960b24e7f9ef883c61 (patch)
tree548db62f1c70eceb837bd0d1c64a54c9bbd3aebd /todolists/models.py
parentac1c00ee86cc0e355af5e4e6be47ca861091356b (diff)
downloadarchweb-dad70d0d7c70e7973cd9e3960b24e7f9ef883c61.tar.gz
archweb-dad70d0d7c70e7973cd9e3960b24e7f9ef883c61.tar.xz
Add a 'last touched by' column to todolist detail view
This allows you to see very easily who last manipulated a package todolist item in case you have a need to know. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists/models.py')
-rw-r--r--todolists/models.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/todolists/models.py b/todolists/models.py
index 3ea80f3..59b1461 100644
--- a/todolists/models.py
+++ b/todolists/models.py
@@ -47,7 +47,8 @@ class Todolist(models.Model):
if not hasattr(self, '_packages'):
self._packages = self.todolistpackage_set.filter(
removed__isnull=True).select_related(
- 'pkg', 'repo', 'arch').order_by('pkgname', 'arch')
+ 'pkg', 'repo', 'arch', 'user__username').order_by(
+ 'pkgname', 'arch')
return self._packages