Add display and form for existing pages_read

Commented out the new update type because it was breaking and I don't
need it quite yet
This commit is contained in:
Joel Bradshaw
2020-11-16 22:47:55 -08:00
parent 3beebe4727
commit 7ffc3114a6
3 changed files with 46 additions and 29 deletions

View File

@ -729,4 +729,12 @@ def update_readthrough(request, book=None, create=True):
except ParserError:
pass
pages_read = request.POST.get('pages_read')
if pages_read:
try:
pages_read = int(pages_read)
readthrough.pages_read = pages_read
except ValueError:
pass
return readthrough