Add statuses to timelines

This commit is contained in:
Mouse Reeve
2021-03-22 14:11:23 -07:00
parent ebc01362e6
commit 459479db43
4 changed files with 95 additions and 15 deletions

View File

@ -34,7 +34,7 @@ class BookWyrmModel(models.Model):
@receiver(models.signals.post_save)
# pylint: disable=unused-argument
def execute_after_save(sender, instance, created, *args, **kwargs):
def set_remote_id(sender, instance, created, *args, **kwargs):
""" set the remote_id after save (when the id is available) """
if not created or not hasattr(instance, "get_remote_id"):
return