mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-11-24 02:21:04 +00:00
Removes invalid argument
This commit is contained in:
parent
120938bee9
commit
061deaefda
1 changed files with 2 additions and 2 deletions
|
@ -367,9 +367,9 @@ def populate_streams_on_account_create(sender, instance, created, *args, **kwarg
|
||||||
|
|
||||||
@receiver(signals.pre_save, sender=models.ShelfBook)
|
@receiver(signals.pre_save, sender=models.ShelfBook)
|
||||||
# pylint: disable=unused-argument
|
# pylint: disable=unused-argument
|
||||||
def add_statuses_on_shelve(sender, instance, created, *args, **kwargs):
|
def add_statuses_on_shelve(sender, instance, *args, **kwargs):
|
||||||
"""update books stream when user shelves a book"""
|
"""update books stream when user shelves a book"""
|
||||||
if not created or not instance.user.local:
|
if not instance.user.local:
|
||||||
return
|
return
|
||||||
# check if the book is already on the user's shelves
|
# check if the book is already on the user's shelves
|
||||||
if models.ShelfBook.objects.filter(
|
if models.ShelfBook.objects.filter(
|
||||||
|
|
Loading…
Reference in a new issue