From dad70d0d7c70e7973cd9e3960b24e7f9ef883c61 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Fri, 10 May 2013 18:42:00 -0500 Subject: 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 --- todolists/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'todolists/models.py') 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 -- cgit v1.2.3-24-g4f1b