fix UnicodeEncodeError

FFIB 2 年之前
父节点
当前提交
2d8abe4813
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      api/admin_views.py

+ 1 - 1
api/admin_views.py

@@ -1069,7 +1069,7 @@ def member_activity_contribute_welfare_create(request, administrator):
1069 1069
     welfare_title = request.POST.get('welfare_title', '')
1070 1070
     welfare_detail = request.POST.get('welfare_detail', '')
1071 1071
     welfare_value = request.POST.get('welfare_value', '')
1072
-    welfare_image_path = request.POST.get('welfare_image_path', '')
1072
+    welfare_image_path = request.POST.get('welfare_image_path', None)
1073 1073
 
1074 1074
     MemberActivityContributionWelfareInfo.objects.create(
1075 1075
         brand_id=administrator.brand_id,