django-bulk-hooks 0.2.6__py3-none-any.whl → 0.2.7__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.
- django_bulk_hooks/operations/bulk_executor.py +7 -0
- {django_bulk_hooks-0.2.6.dist-info → django_bulk_hooks-0.2.7.dist-info}/METADATA +1 -1
- {django_bulk_hooks-0.2.6.dist-info → django_bulk_hooks-0.2.7.dist-info}/RECORD +5 -5
- {django_bulk_hooks-0.2.6.dist-info → django_bulk_hooks-0.2.7.dist-info}/LICENSE +0 -0
- {django_bulk_hooks-0.2.6.dist-info → django_bulk_hooks-0.2.7.dist-info}/WHEEL +0 -0
|
@@ -386,6 +386,13 @@ class BulkExecutor:
|
|
|
386
386
|
continue
|
|
387
387
|
|
|
388
388
|
value = getattr(obj, db_field_name)
|
|
389
|
+
|
|
390
|
+
# For FK fields, ensure we get the actual ID value, not the related object
|
|
391
|
+
if getattr(field, 'is_relation', False) and hasattr(field, 'attname'):
|
|
392
|
+
# If value is a model instance, get its pk
|
|
393
|
+
if value is not None and hasattr(value, 'pk'):
|
|
394
|
+
value = value.pk
|
|
395
|
+
|
|
389
396
|
when_statements.append(
|
|
390
397
|
When(
|
|
391
398
|
**{field_group.filter_field: pk},
|
|
@@ -14,13 +14,13 @@ django_bulk_hooks/manager.py,sha256=3mFzB0ZzHHeXWdKGObZD_H0NlskHJc8uYBF69KKdAXU,
|
|
|
14
14
|
django_bulk_hooks/models.py,sha256=62tn5wL55EjJVOsZofMluhEJB8bH7CzBvH0vd214_RY,2570
|
|
15
15
|
django_bulk_hooks/operations/__init__.py,sha256=5L5NnwiFw8Yn5WO6-38eGdCYBkA0URpwyDcAdeYfc5w,550
|
|
16
16
|
django_bulk_hooks/operations/analyzer.py,sha256=s6FM53ho1raPdKU-VjjW0SWymXyrJe0I_Wu8XsXFdSY,9065
|
|
17
|
-
django_bulk_hooks/operations/bulk_executor.py,sha256=
|
|
17
|
+
django_bulk_hooks/operations/bulk_executor.py,sha256=7VJgeTFcMQ9ZELvCV6WR6udUPJNL6Kf-w9iEva6pIPA,18271
|
|
18
18
|
django_bulk_hooks/operations/coordinator.py,sha256=XH84Vl8pLVOWXzpUuTNf6bX6Zm0__no02TFfr6DW6Jg,16599
|
|
19
19
|
django_bulk_hooks/operations/mti_handler.py,sha256=eIH-tImMqcWR5lLQr6Ca-HeVYta-UkXk5X5fcpS885Y,18245
|
|
20
20
|
django_bulk_hooks/operations/mti_plans.py,sha256=fHUYbrUAHq8UXqxgAD43oHdTxOnEkmpxoOD4Qrzfqk8,2878
|
|
21
21
|
django_bulk_hooks/queryset.py,sha256=ody4MXrRREL27Ts2ey1UpS0tb5Dxnw-6kN3unxPQ3zY,5860
|
|
22
22
|
django_bulk_hooks/registry.py,sha256=UPerNhtVz_9tKZqrYSZD2LhjAcs4F6hVUuk8L5oOeHc,8821
|
|
23
|
-
django_bulk_hooks-0.2.
|
|
24
|
-
django_bulk_hooks-0.2.
|
|
25
|
-
django_bulk_hooks-0.2.
|
|
26
|
-
django_bulk_hooks-0.2.
|
|
23
|
+
django_bulk_hooks-0.2.7.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
|
|
24
|
+
django_bulk_hooks-0.2.7.dist-info/METADATA,sha256=4sY-WsqTUdlCIoNQBgnNpdScPMZ7BEbi980D4T4MsYE,9264
|
|
25
|
+
django_bulk_hooks-0.2.7.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
|
|
26
|
+
django_bulk_hooks-0.2.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|