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

@@ -698,9 +698,16 @@ class HookQuerySetMixin:
698
698
  if key in existing_db_map:
699
699
  db_record = existing_db_map[key]
700
700
  # Copy all fields from the database record to ensure completeness
701
+ # but exclude auto_now_add fields which should never be updated
701
702
  populated_fields = []
702
703
  for field in model_cls._meta.local_fields:
703
704
  if field.name != "id": # Don't overwrite the ID
705
+ # Skip auto_now_add fields for existing records
706
+ if (
707
+ hasattr(field, "auto_now_add")
708
+ and field.auto_now_add
709
+ ):
710
+ continue
704
711
  db_value = getattr(db_record, field.name)
705
712
  if (
706
713
  db_value is not None
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: django-bulk-hooks
3
- Version: 0.1.276
3
+ Version: 0.1.277
4
4
  Summary: Hook-style hooks for Django bulk operations like bulk_create and bulk_update.
5
5
  Home-page: https://github.com/AugendLimited/django-bulk-hooks
6
6
  License: MIT
@@ -9,9 +9,9 @@ django_bulk_hooks/handler.py,sha256=e_GACTQT-pFF-zL7POeo232MgOikUoCLcxDVInAUiBw,
9
9
  django_bulk_hooks/manager.py,sha256=3jNWL-EkvGScsliNc7mW-ozQCG6HyaEevI1u1BFS4AA,3836
10
10
  django_bulk_hooks/models.py,sha256=WtSfc4GBOG_oOt8n37cVvid0MtFIGze9JYKSixil2y0,4370
11
11
  django_bulk_hooks/priority.py,sha256=HG_2D35nga68lBCZmSXTcplXrjFoRgZFRDOy4ROKonY,376
12
- django_bulk_hooks/queryset.py,sha256=ICkNPVgJh0EQFQ3TEd8Bjb6e8_UgdR582xncWDfZKnw,94419
12
+ django_bulk_hooks/queryset.py,sha256=5fTvjWExvYigAd3lkhuMObZhrMklUDnNv25fcDdnwYg,94893
13
13
  django_bulk_hooks/registry.py,sha256=GRUTGVQEO2sdkC9OaZ9Q3U7mM-3Ix83uTyvrlTtpatw,1317
14
- django_bulk_hooks-0.1.276.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
- django_bulk_hooks-0.1.276.dist-info/METADATA,sha256=_rlGfWI0VNER4r1V7XC4eQyRwizLDcAehuAWjRcVWwU,9103
16
- django_bulk_hooks-0.1.276.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
17
- django_bulk_hooks-0.1.276.dist-info/RECORD,,
14
+ django_bulk_hooks-0.1.277.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
+ django_bulk_hooks-0.1.277.dist-info/METADATA,sha256=33_55hzjZOjivZN_RDhwmrAeD1kzbGcSGkUbNt9AepE,9103
16
+ django_bulk_hooks-0.1.277.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
17
+ django_bulk_hooks-0.1.277.dist-info/RECORD,,