Removes duplicate atomic block

This commit is contained in:
Mouse Reeve 2022-01-12 16:41:23 -08:00
parent dedcbda2d8
commit 5fcdc284ce
1 changed files with 25 additions and 26 deletions

View File

@ -208,7 +208,6 @@ def set_related_field(
model = apps.get_model(f"bookwyrm.{model_name}", require_ready=True)
origin_model = apps.get_model(f"bookwyrm.{origin_model_name}", require_ready=True)
with transaction.atomic():
if isinstance(data, str):
existing = model.find_existing_by_remote_id(data)
if existing: