From 42887bbb03af0ed1002298ea281f6b59d9cfbd4b Mon Sep 17 00:00:00 2001 From: David Lougheed Date: Wed, 30 Oct 2024 13:09:28 -0400 Subject: [PATCH] fix: copy object mime type if ingesting copy-record --- chord_drs/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chord_drs/models.py b/chord_drs/models.py index 6d2b18b..b2d5965 100644 --- a/chord_drs/models.py +++ b/chord_drs/models.py @@ -60,7 +60,7 @@ def __init__(self, *args, **kwargs): self.location = object_to_copy.location self.size = object_to_copy.size self.checksum = object_to_copy.checksum - self.mime_type + self.mime_type = object_to_copy.mime_type del kwargs["object_to_copy"] else: location = kwargs.get("location")