django-bulk-hooks 0.2.13__py3-none-any.whl → 0.2.14__py3-none-any.whl

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.

@@ -342,22 +342,6 @@ class BulkOperationCoordinator:
342
342
  from django.db.models import QuerySet as BaseQuerySet
343
343
  base_qs = BaseQuerySet(model=self.model_cls, using=self.queryset.db)
344
344
  base_qs.bulk_update(new_instances, list(hook_modified_fields))
345
-
346
- # Refresh instances after bulk_update to reflect any changes
347
- refreshed_map = {
348
- inst.pk: inst
349
- for inst in self.model_cls.objects.filter(
350
- pk__in=[obj.pk for obj in new_instances]
351
- )
352
- }
353
- for instance in new_instances:
354
- if instance.pk in refreshed_map:
355
- refreshed = refreshed_map[instance.pk]
356
- for field in self.model_cls._meta.fields:
357
- try:
358
- setattr(instance, field.name, getattr(refreshed, field.name))
359
- except Exception:
360
- pass
361
345
 
362
346
  # 7. AFTER_UPDATE hooks (read-only side effects)
363
347
  for model_cls in models_in_chain:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-bulk-hooks
3
- Version: 0.2.13
3
+ Version: 0.2.14
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
@@ -14,12 +14,12 @@ django_bulk_hooks/models.py,sha256=62tn5wL55EjJVOsZofMluhEJB8bH7CzBvH0vd214_RY,2
14
14
  django_bulk_hooks/operations/__init__.py,sha256=5L5NnwiFw8Yn5WO6-38eGdCYBkA0URpwyDcAdeYfc5w,550
15
15
  django_bulk_hooks/operations/analyzer.py,sha256=s6FM53ho1raPdKU-VjjW0SWymXyrJe0I_Wu8XsXFdSY,9065
16
16
  django_bulk_hooks/operations/bulk_executor.py,sha256=7VJgeTFcMQ9ZELvCV6WR6udUPJNL6Kf-w9iEva6pIPA,18271
17
- django_bulk_hooks/operations/coordinator.py,sha256=Qt6BHROXdMuI9v7s4oAB3DD2gE-jkKV4u52rLRjtR-M,19844
17
+ django_bulk_hooks/operations/coordinator.py,sha256=XV7qR0ViAmYacvZ1w87XB_AfVeHNx2m5EGxdyVjZ0A4,19138
18
18
  django_bulk_hooks/operations/mti_handler.py,sha256=eIH-tImMqcWR5lLQr6Ca-HeVYta-UkXk5X5fcpS885Y,18245
19
19
  django_bulk_hooks/operations/mti_plans.py,sha256=fHUYbrUAHq8UXqxgAD43oHdTxOnEkmpxoOD4Qrzfqk8,2878
20
20
  django_bulk_hooks/queryset.py,sha256=ody4MXrRREL27Ts2ey1UpS0tb5Dxnw-6kN3unxPQ3zY,5860
21
21
  django_bulk_hooks/registry.py,sha256=UPerNhtVz_9tKZqrYSZD2LhjAcs4F6hVUuk8L5oOeHc,8821
22
- django_bulk_hooks-0.2.13.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
23
- django_bulk_hooks-0.2.13.dist-info/METADATA,sha256=TTS7G8eL1PN82da4t5u0_EBBE3tG2sfhr1wNVtKZ43s,9265
24
- django_bulk_hooks-0.2.13.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
25
- django_bulk_hooks-0.2.13.dist-info/RECORD,,
22
+ django_bulk_hooks-0.2.14.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
23
+ django_bulk_hooks-0.2.14.dist-info/METADATA,sha256=AeGKScSidSzh5d0NmcN9cTZtMXvdGFM5zI05JdIEnt4,9265
24
+ django_bulk_hooks-0.2.14.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
25
+ django_bulk_hooks-0.2.14.dist-info/RECORD,,