django-bulk-hooks 0.2.40__tar.gz → 0.2.42__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of django-bulk-hooks might be problematic. Click here for more details.
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/PKG-INFO +1 -1
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/dispatcher.py +1 -14
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/factory.py +541 -563
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/handler.py +106 -114
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/analyzer.py +315 -277
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/bulk_executor.py +512 -576
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/coordinator.py +670 -670
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/mti_handler.py +5 -4
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/queryset.py +188 -191
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/registry.py +277 -298
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/pyproject.toml +1 -1
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/LICENSE +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/README.md +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/__init__.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/changeset.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/conditions.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/constants.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/context.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/decorators.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/enums.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/helpers.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/manager.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/models.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/__init__.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/mti_plans.py +0 -0
- {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/record_classifier.py +0 -0
|
@@ -165,10 +165,6 @@ class HookDispatcher:
|
|
|
165
165
|
|
|
166
166
|
# Preload for new_records
|
|
167
167
|
if filtered_changeset.new_records:
|
|
168
|
-
logger.debug(
|
|
169
|
-
f"Preloading relationships for {len(filtered_changeset.new_records)} "
|
|
170
|
-
f"new_records for {handler_cls.__name__}.{method_name}",
|
|
171
|
-
)
|
|
172
168
|
preload_func(
|
|
173
169
|
filtered_changeset.new_records,
|
|
174
170
|
model_cls=model_cls_override,
|
|
@@ -177,22 +173,13 @@ class HookDispatcher:
|
|
|
177
173
|
|
|
178
174
|
# Also preload for old_records (for conditions that check previous values)
|
|
179
175
|
if filtered_changeset.old_records:
|
|
180
|
-
logger.debug(
|
|
181
|
-
f"Preloading relationships for {len(filtered_changeset.old_records)} "
|
|
182
|
-
f"old_records for {handler_cls.__name__}.{method_name}",
|
|
183
|
-
)
|
|
184
176
|
preload_func(
|
|
185
177
|
filtered_changeset.old_records,
|
|
186
178
|
model_cls=model_cls_override,
|
|
187
179
|
skip_fields=skip_fields,
|
|
188
180
|
)
|
|
189
181
|
except Exception:
|
|
190
|
-
|
|
191
|
-
"select_related preload failed for %s.%s",
|
|
192
|
-
handler_cls.__name__,
|
|
193
|
-
method_name,
|
|
194
|
-
exc_info=True,
|
|
195
|
-
)
|
|
182
|
+
pass # Preload failed, continue without it
|
|
196
183
|
|
|
197
184
|
# Execute hook with ChangeSet
|
|
198
185
|
#
|