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

@@ -142,10 +142,20 @@ class HookHandler(metaclass=HookMeta):
142
142
  handler = handler_cls()
143
143
  method = getattr(handler, method_name)
144
144
 
145
+ # Inspect the method signature to determine parameter order
146
+ import inspect
147
+ sig = inspect.signature(method)
148
+ params = list(sig.parameters.keys())
149
+
150
+ # Remove 'self' from params if it exists
151
+ if params and params[0] == 'self':
152
+ params = params[1:]
153
+
154
+ # Always call with keyword arguments to make order irrelevant
145
155
  try:
146
156
  method(
147
- new_records=new_local,
148
157
  old_records=old_local,
158
+ new_records=new_local,
149
159
  **kwargs,
150
160
  )
151
161
  except Exception:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-bulk-hooks
3
- Version: 0.1.92
3
+ Version: 0.1.93
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
@@ -5,12 +5,12 @@ django_bulk_hooks/context.py,sha256=HVDT73uSzvgrOR6mdXTvsBm3hLOgBU8ant_mB7VlFuM,
5
5
  django_bulk_hooks/decorators.py,sha256=zstmb27dKcOHu3Atg7cauewCTzPvUmq03mzVKJRi56o,7230
6
6
  django_bulk_hooks/engine.py,sha256=1hqjmLRmxwI-OSC6GJizD_CFGPw7pndAa0GMIV7P-XQ,3544
7
7
  django_bulk_hooks/enums.py,sha256=Zo8_tJzuzZ2IKfVc7gZ-0tWPT8q1QhqZbAyoh9ZVJbs,381
8
- django_bulk_hooks/handler.py,sha256=Qpg_zT6SsQiTlhduvzXxPdG6uynjyR2fBjj-R6HZiXI,4861
8
+ django_bulk_hooks/handler.py,sha256=NMjb1CMEXeNdIWFEvLKhSvakDL7SgZ7-R9E0jLolzDw,5323
9
9
  django_bulk_hooks/manager.py,sha256=DcVosEA4RS79KSYgw3Z14_a9Sd8CfxNNc5F3eSb8xc0,11459
10
10
  django_bulk_hooks/models.py,sha256=a9XoGgIG4Sfi_kvGnPBbG2DlvgZDz6Qck4VG-DGqFT0,4981
11
11
  django_bulk_hooks/queryset.py,sha256=7lLqhZ-XOYsZ1I3Loxi4Nhz79M8HlTYE413AW8nyeDI,1330
12
12
  django_bulk_hooks/registry.py,sha256=Vh78exKYcdZhM27120kQm-iXGOjd_kf9ZUYBZ8eQ2V0,683
13
- django_bulk_hooks-0.1.92.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
14
- django_bulk_hooks-0.1.92.dist-info/METADATA,sha256=0ioKPey9yto9oKUf-m97GJxv9Q9Q0d6k7jZiObFH5Gk,9051
15
- django_bulk_hooks-0.1.92.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
- django_bulk_hooks-0.1.92.dist-info/RECORD,,
13
+ django_bulk_hooks-0.1.93.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
14
+ django_bulk_hooks-0.1.93.dist-info/METADATA,sha256=zygRGrXMlCDgNdYIRTuD12kLmWLiO5Mn0ae1kvJFVWM,9051
15
+ django_bulk_hooks-0.1.93.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
16
+ django_bulk_hooks-0.1.93.dist-info/RECORD,,