From 4c9aba2b4755ddb94b8c271df37eefdb5f5626f9 Mon Sep 17 00:00:00 2001 From: eric Date: Thu, 23 Jan 2014 23:04:52 -0500 Subject: [PATCH] authors should always return a query set --- core/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/models.py b/core/models.py index b655ea67..a7abb766 100755 --- a/core/models.py +++ b/core/models.py @@ -1079,7 +1079,7 @@ class Work(models.Model): for edition in self.editions.all(): if edition.authors.all().count()>0: return edition.authors.all() - return [] + return Author.objects.none() def author(self): # assumes that they come out in the same order they go in!