1
0
Fork 0

More books tests

This commit is contained in:
Mouse Reeve 2020-05-14 11:28:45 -07:00
parent d92c9af9c3
commit 3b16bb748c
2 changed files with 25 additions and 9 deletions

View file

@ -27,5 +27,6 @@ def execute_after_save(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
instance.remote_id = instance.get_remote_id()
instance.save()
if not instance.remote_id:
instance.remote_id = instance.get_remote_id()
instance.save()