More books tests
This commit is contained in:
parent
d92c9af9c3
commit
3b16bb748c
2 changed files with 25 additions and 9 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue