comments and code adjustments

This commit is contained in:
David Kennedy 2024-06-03 16:53:02 -04:00
parent 42a2e8d3ae
commit 4ff60817da
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
4 changed files with 60 additions and 12 deletions

View file

@ -2272,12 +2272,11 @@ class PublicContactResource(resources.ModelResource):
self.create_instances.append(instance)
else:
self.update_instances.append(instance)
elif not using_transactions and dry_run:
# we don't have transactions and we want to do a dry_run
pass
else:
if not using_transactions and dry_run:
# we don't have transactions and we want to do a dry_run
pass
else:
instance.save(skip_epp_save=True)
instance.save(skip_epp_save=True)
self.after_save_instance(instance, using_transactions, dry_run)