From abdb8830d3e3970d792a46485049b89802206975 Mon Sep 17 00:00:00 2001 From: Chill Date: Wed, 18 Oct 2023 12:42:51 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#I88V1V=20app=5Fai=5Fmedia=E7=BD=91?= =?UTF-8?q?=E7=AB=99=E5=9B=BE=E7=89=87=E8=BD=AC=E6=9C=AC=E5=9C=B0=EF=BC=8C?= =?UTF-8?q?=E6=9C=89bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app_common/models/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app_common/models/base.py b/app_common/models/base.py index f07073f0..59e88455 100644 --- a/app_common/models/base.py +++ b/app_common/models/base.py @@ -114,6 +114,8 @@ class Base(models.AbstractModel): 'name': file_name, }) return attachment + else: + return False def get_ua_type(self): return get_ua_type()