Skip to content

Commit

Permalink
Merge pull request #2095 from laws-africa/publication-file
Browse files Browse the repository at this point in the history
don't save publication file when deleting a file on it
  • Loading branch information
goose-life authored Oct 10, 2024
2 parents 6ce1089 + 658fa6c commit 6c51407
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion peachjam/adapters/indigo.py
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,7 @@ def create_publication_file(self, publication_document, doc, title, stub=False):
logger.info(
f" Deleting existing PublicationFile file on {doc.work_frbr_uri}"
)
doc.publication_file.file.delete()
doc.publication_file.file.delete(save=False)

if stub:
if hasattr(doc, "source_file"):
Expand Down

0 comments on commit 6c51407

Please sign in to comment.