File tree 1 file changed +8
-4
lines changed
1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -153,15 +153,19 @@ def execute_query() -> None:
153
153
154
154
try :
155
155
# Run the initial query
156
- data = query (* args , ** kwargs )
156
+ new_data = query (* args , ** kwargs )
157
157
158
158
# Use a custom postprocessor, if provided
159
159
if query_options .postprocessor :
160
- query_options .postprocessor (data , ** query_options .postprocessor_kwargs )
160
+ query_options .postprocessor (
161
+ new_data , ** query_options .postprocessor_kwargs
162
+ )
161
163
162
164
# Use the default postprocessor
163
165
else :
164
- django_query_postprocessor (data , ** query_options .postprocessor_kwargs )
166
+ django_query_postprocessor (
167
+ new_data , ** query_options .postprocessor_kwargs
168
+ )
165
169
except Exception as e :
166
170
set_data (None )
167
171
set_loading (False )
@@ -173,7 +177,7 @@ def execute_query() -> None:
173
177
finally :
174
178
set_should_execute (False )
175
179
176
- set_data (data )
180
+ set_data (new_data )
177
181
set_loading (False )
178
182
set_error (None )
179
183
You can’t perform that action at this time.
0 commit comments