django-bulk-hooks 0.1.92__tar.gz → 0.1.93__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.1.92 → django_bulk_hooks-0.1.93}/PKG-INFO +1 -1
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/handler.py +11 -1
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/pyproject.toml +1 -1
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/LICENSE +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/README.md +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/__init__.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/conditions.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/constants.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/context.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/decorators.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/engine.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/enums.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/manager.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/models.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/queryset.py +0 -0
- {django_bulk_hooks-0.1.92 → django_bulk_hooks-0.1.93}/django_bulk_hooks/registry.py +0 -0
|
@@ -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:
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|