Merge pull request #285 from Gluejar/fix_no_authors
authors should always return a query setpull/1/head
commit
3906bc0a7b
|
@ -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!
|
||||
|
|
Loading…
Reference in New Issue