authors should always return a query set

pull/1/head
eric 2014-01-23 23:04:52 -05:00
parent 255d2613f8
commit 4c9aba2b47
1 changed files with 1 additions and 1 deletions

View File

@ -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!