Functional switch editions button

This commit is contained in:
Mouse Reeve
2020-12-11 16:57:38 -08:00
parent 72eb94315a
commit 2d7f8ada61
5 changed files with 43 additions and 13 deletions

View File

@ -283,7 +283,7 @@ class Boost(Status):
class ReadThrough(BookWyrmModel):
''' Store progress through a book in the database. '''
user = models.ForeignKey('User', on_delete=models.PROTECT)
book = models.ForeignKey('Book', on_delete=models.PROTECT)
book = models.ForeignKey('Edition', on_delete=models.PROTECT)
pages_read = models.IntegerField(
null=True,
blank=True)