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.

Files changed (26) hide show
  1. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/PKG-INFO +1 -1
  2. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/dispatcher.py +1 -14
  3. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/factory.py +541 -563
  4. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/handler.py +106 -114
  5. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/analyzer.py +315 -277
  6. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/bulk_executor.py +512 -576
  7. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/coordinator.py +670 -670
  8. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/mti_handler.py +5 -4
  9. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/queryset.py +188 -191
  10. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/registry.py +277 -298
  11. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/pyproject.toml +1 -1
  12. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/LICENSE +0 -0
  13. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/README.md +0 -0
  14. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/__init__.py +0 -0
  15. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/changeset.py +0 -0
  16. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/conditions.py +0 -0
  17. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/constants.py +0 -0
  18. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/context.py +0 -0
  19. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/decorators.py +0 -0
  20. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/enums.py +0 -0
  21. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/helpers.py +0 -0
  22. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/manager.py +0 -0
  23. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/models.py +0 -0
  24. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/__init__.py +0 -0
  25. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/mti_plans.py +0 -0
  26. {django_bulk_hooks-0.2.40 → django_bulk_hooks-0.2.42}/django_bulk_hooks/operations/record_classifier.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-bulk-hooks
3
- Version: 0.2.40
3
+ Version: 0.2.42
4
4
  Summary: Hook-style hooks for Django bulk operations like bulk_create and bulk_update.
5
5
  License: MIT
6
6
  Keywords: django,bulk,hooks
@@ -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
- logger.debug(
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
  #