Adds reading acitivity views

This commit is contained in:
Mouse Reeve
2021-01-13 12:33:48 -08:00
parent 2e61bd0e7a
commit 7555d76c3f
6 changed files with 182 additions and 175 deletions

View File

@ -134,10 +134,8 @@ def shelve(request):
except models.Shelf.DoesNotExist:
# this just means it isn't currently on the user's shelves
pass
shelfbook = models.ShelfBook(
shelfbook = models.ShelfBook.objects.create(
book=book, shelf=desired_shelf, added_by=request.user)
shelfbook.save()
broadcast(request.user, shelfbook.to_add_activity(request.user))
# post about "want to read" shelves