circular import issues and added_by migration

This commit is contained in:
Mouse Reeve
2021-02-04 14:27:26 -08:00
parent 5a3a6151a6
commit 7381536ad6
19 changed files with 273 additions and 265 deletions

View File

@ -44,7 +44,7 @@ def start_reading(request, book_id):
# this just means it isn't currently on the user's shelves
pass
models.ShelfBook.objects.create(
book=book, shelf=shelf, added_by=request.user)
book=book, shelf=shelf, user=request.user)
# post about it (if you want)
if request.POST.get('post-status'):
@ -81,7 +81,7 @@ def finish_reading(request, book_id):
# this just means it isn't currently on the user's shelves
pass
models.ShelfBook.objects.create(
book=book, shelf=shelf, added_by=request.user)
book=book, shelf=shelf, user=request.user)
# post about it (if you want)
if request.POST.get('post-status'):