From a08a53508474ed27490c322dcc95028b1b33a99d Mon Sep 17 00:00:00 2001 From: Brooks Travis Date: Fri, 16 Oct 2015 23:05:44 -0500 Subject: [PATCH] Adding "storage" argument to "args_list" for command class render methods, setting value to "field.storage" to support cases where the storage class is not the FileField default. --- stdimage/management/commands/rendervariations.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdimage/management/commands/rendervariations.py b/stdimage/management/commands/rendervariations.py index e9855dc..0767799 100644 --- a/stdimage/management/commands/rendervariations.py +++ b/stdimage/management/commands/rendervariations.py @@ -63,6 +63,7 @@ def render_in_parallel(field, images, count, replace): file_name=file_name, variations=field.variations, replace=replace, + storage=field.storage ) for file_name in images ] @@ -79,6 +80,7 @@ def render_linear(field, images, count, replace): file_name=file_name, variations=field.variations, replace=replace, + storage=field.storage ) for file_name in images ]