Fixes bug in outgoing shelve serialization

This commit is contained in:
Mouse Reeve 2020-09-28 14:52:25 -07:00
parent 23b045d7f7
commit 10d18cc633

View file

@ -101,7 +101,8 @@ def handle_reject(user, to_follow, relationship):
def handle_shelve(user, book, shelf):
''' a local user is getting a book put on their shelf '''
# update the database
shelve = models.ShelfBook(book=book, shelf=shelf, added_by=user).save()
shelve = models.ShelfBook(book=book, shelf=shelf, added_by=user)
shelve.save()
broadcast(user, shelve.to_add_activity(user))