From 895d2f88527994fc324bcdf7be723d6d2b074ce8 Mon Sep 17 00:00:00 2001 From: Dan Funk Date: Fri, 29 May 2020 05:04:18 -0400 Subject: [PATCH] Slight change to the way the approval model is connected. --- crc/models/approval.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/crc/models/approval.py b/crc/models/approval.py index ff46673b..f7aa2e06 100644 --- a/crc/models/approval.py +++ b/crc/models/approval.py @@ -87,9 +87,9 @@ class Approval(object): instance.associated_files = [] for approval_file in model.approval_files: associated_file = {} - associated_file['id'] = approval_file.file.id - associated_file['name'] = approval_file.file.name - associated_file['content_type'] = approval_file.file.content_type + associated_file['id'] = approval_file.file_data.file_model.id + associated_file['name'] = approval_file.file_data.file_model.name + associated_file['content_type'] = approval_file.file_data.file_model.content_type instance.associated_files.append(associated_file) return instance