summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/models.py b/main/models.py
index d65c8470..71b9e181 100644
--- a/main/models.py
+++ b/main/models.py
@@ -303,7 +303,7 @@ class Todolist(models.Model):
@property
def packages(self):
- return TodolistPkg.objects.filter(list=self.id).order_by('pkg')
+ return TodolistPkg.objects.select_related().filter(list=self).order_by('pkg')
@property
def package_names(self):