django-bulk-hooks 0.1.163__py3-none-any.whl → 0.1.164__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.

@@ -24,9 +24,11 @@ class BulkHookManager(models.Manager):
24
24
  # Check if this is our HookQuerySet or a different QuerySet
25
25
  if hasattr(qs, 'bulk_update') and 'bypass_hooks' in inspect.signature(qs.bulk_update).parameters:
26
26
  # Our HookQuerySet - pass all parameters
27
+ print(f"DEBUG: Using our HookQuerySet for {self.model}")
27
28
  return qs.bulk_update(objs, fields, bypass_hooks=bypass_hooks, bypass_validation=bypass_validation, **kwargs)
28
29
  else:
29
30
  # Different QuerySet (like queryable_properties) - only pass standard parameters
31
+ print(f"DEBUG: Using different QuerySet ({type(qs)}) for {self.model}, bypassing hooks")
30
32
  django_kwargs = {k: v for k, v in kwargs.items() if k not in ['bypass_hooks', 'bypass_validation']}
31
33
  return qs.bulk_update(objs, fields, **django_kwargs)
32
34
 
@@ -52,6 +54,7 @@ class BulkHookManager(models.Manager):
52
54
  # Check if this is our HookQuerySet or a different QuerySet
53
55
  if hasattr(qs, 'bulk_create') and 'bypass_hooks' in inspect.signature(qs.bulk_create).parameters:
54
56
  # Our HookQuerySet - pass all parameters
57
+ print(f"DEBUG: Using our HookQuerySet for {self.model}")
55
58
  kwargs = {
56
59
  'batch_size': batch_size,
57
60
  'ignore_conflicts': ignore_conflicts,
@@ -62,6 +65,7 @@ class BulkHookManager(models.Manager):
62
65
  return qs.bulk_create(objs, bypass_hooks=bypass_hooks, bypass_validation=bypass_validation, **kwargs)
63
66
  else:
64
67
  # Different QuerySet - only pass standard parameters
68
+ print(f"DEBUG: Using different QuerySet ({type(qs)}) for {self.model}, bypassing hooks")
65
69
  kwargs = {
66
70
  'batch_size': batch_size,
67
71
  'ignore_conflicts': ignore_conflicts,
@@ -85,12 +89,14 @@ class BulkHookManager(models.Manager):
85
89
  # Check if this is our HookQuerySet or a different QuerySet
86
90
  if hasattr(qs, 'bulk_delete') and 'bypass_hooks' in inspect.signature(qs.bulk_delete).parameters:
87
91
  # Our HookQuerySet - pass all parameters
92
+ print(f"DEBUG: Using our HookQuerySet for {self.model}")
88
93
  kwargs = {
89
94
  'batch_size': batch_size,
90
95
  }
91
96
  return qs.bulk_delete(objs, bypass_hooks=bypass_hooks, bypass_validation=bypass_validation, **kwargs)
92
97
  else:
93
98
  # Different QuerySet - only pass standard parameters
99
+ print(f"DEBUG: Using different QuerySet ({type(qs)}) for {self.model}, bypassing hooks")
94
100
  kwargs = {
95
101
  'batch_size': batch_size,
96
102
  }
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-bulk-hooks
3
- Version: 0.1.163
3
+ Version: 0.1.164
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
@@ -6,12 +6,12 @@ django_bulk_hooks/decorators.py,sha256=tckDcxtOzKCbgvS9QydgeIAWTFDEl-ch3_Q--ruEG
6
6
  django_bulk_hooks/engine.py,sha256=3HbgV12JRYIy9IlygHPxZiHnFXj7EwzLyTuJNQeVIoI,1402
7
7
  django_bulk_hooks/enums.py,sha256=Zo8_tJzuzZ2IKfVc7gZ-0tWPT8q1QhqZbAyoh9ZVJbs,381
8
8
  django_bulk_hooks/handler.py,sha256=xZt8iNdYF-ACz-MnKMY0co6scWINU5V5wC1lyDn844k,4854
9
- django_bulk_hooks/manager.py,sha256=7wQv2V1SgfjshFSqwDdIuWU3NrRKQ4y-3mpV47JTZXc,5035
9
+ django_bulk_hooks/manager.py,sha256=ipOr2PMGycW0LpWsZ0asNRTPKVNpp3D081ibuY__cj0,5551
10
10
  django_bulk_hooks/models.py,sha256=5PBjBoGlHwAE5b4yaZ5kDjt5UtHfQp6pDrwB2XPs2tk,3850
11
11
  django_bulk_hooks/priority.py,sha256=HG_2D35nga68lBCZmSXTcplXrjFoRgZFRDOy4ROKonY,376
12
12
  django_bulk_hooks/queryset.py,sha256=qMMr_IgOrWqV5dYoEqOSKjJcxgepcovdjAn77QL5bs8,23574
13
13
  django_bulk_hooks/registry.py,sha256=-mQBizJ06nz_tajZBinViKx_uP2Tbc1tIpTEMv7lwKA,705
14
- django_bulk_hooks-0.1.163.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
- django_bulk_hooks-0.1.163.dist-info/METADATA,sha256=dDALy1e__e2zGAPq-I-a7yhVVFAchL4-ebPpKP8lL8g,6951
16
- django_bulk_hooks-0.1.163.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- django_bulk_hooks-0.1.163.dist-info/RECORD,,
14
+ django_bulk_hooks-0.1.164.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
+ django_bulk_hooks-0.1.164.dist-info/METADATA,sha256=ctAhRwnzonbXKWblwj0eU6agetmVEhVcmvj2TqtQls0,6951
16
+ django_bulk_hooks-0.1.164.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ django_bulk_hooks-0.1.164.dist-info/RECORD,,