summaryrefslogtreecommitdiff
path: root/todolists/models.py
diff options
context:
space:
mode:
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 3ea80f37..59b14616 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