prefer editions with covers
parent
f972c4c2dc
commit
605d971078
|
@ -1292,7 +1292,7 @@ class Work(models.Model):
|
|||
self.save()
|
||||
return self.last_campaign().edition
|
||||
try:
|
||||
self.selected_edition = self.editions.all()[0]
|
||||
self.selected_edition = self.editions.all().order_by('-cover_image', '-created')[0] # prefer editions with covers
|
||||
self.save()
|
||||
return self.selected_edition
|
||||
except IndexError:
|
||||
|
|
Loading…
Reference in New Issue