优化存储路径

FFIB лет %!s(int64=2): %!d(string=назад)
Родитель
Сommit
2fb7179102
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      kodo/oauth_settings.py

+ 1 - 1
kodo/oauth_settings.py

@@ -253,7 +253,7 @@ def DJANGO_FILE_UPLOAD_CALLBACK_FUNC(request, file_path=None, file_url=None):
253 253
             app_version=version,
254 254
         )
255 255
 
256
-    elif file_type == 'contribution':
256
+    elif 'contribution' in file_type:
257 257
         width = request.POST.get('width', '')
258 258
         height = request.POST.get('height', 0)
259 259
         file = request.FILES.get('file', '')