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

@@ -230,12 +230,13 @@ class HookQuerySetMixin:
230
230
  fields_set = set(fields)
231
231
  pk_fields = model_cls._meta.pk_fields
232
232
  for field in model_cls._meta.local_concrete_fields:
233
- if not (
234
- field in pk_fields or field.__class__.pre_save is Field.pre_save
235
- ):
236
- fields_set.add(field.name)
237
- if field.name != field.attname:
238
- fields_set.add(field.attname)
233
+ # Only add auto_now fields (like updated_at) that aren't already in the fields list
234
+ # Don't include auto_now_add fields (like created_at) as they should only be set on creation
235
+ if hasattr(field, "auto_now") and field.auto_now:
236
+ if field.name not in fields_set and field.name not in pk_fields:
237
+ fields_set.add(field.name)
238
+ if field.name != field.attname:
239
+ fields_set.add(field.attname)
239
240
  fields = list(fields_set)
240
241
 
241
242
  # Handle MTI models differently
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-bulk-hooks
3
- Version: 0.1.193
3
+ Version: 0.1.195
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
@@ -9,9 +9,9 @@ django_bulk_hooks/handler.py,sha256=xZt8iNdYF-ACz-MnKMY0co6scWINU5V5wC1lyDn844k,
9
9
  django_bulk_hooks/manager.py,sha256=nfWiwU5-yAoxdnQsUMohxtyCpkV0MBv6X3wmipr9eQY,3697
10
10
  django_bulk_hooks/models.py,sha256=7fnx5xd4HWXfLVlFhhiRzR92JRWFEuxgk6aSWLEsyJg,3996
11
11
  django_bulk_hooks/priority.py,sha256=HG_2D35nga68lBCZmSXTcplXrjFoRgZFRDOy4ROKonY,376
12
- django_bulk_hooks/queryset.py,sha256=nIygGty8Ex9F0Iz8CRIIDxkNZeT3M4LF1vgMh8_o1Jc,28678
12
+ django_bulk_hooks/queryset.py,sha256=0B6FMBJCr62NApCU_vHleh1S0BH-xKQsMPn0Sw96nUg,28917
13
13
  django_bulk_hooks/registry.py,sha256=-mQBizJ06nz_tajZBinViKx_uP2Tbc1tIpTEMv7lwKA,705
14
- django_bulk_hooks-0.1.193.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
- django_bulk_hooks-0.1.193.dist-info/METADATA,sha256=XkCe1wym7M3k0k3pcOOYSH6zdVxatdzziz12gDrEvwM,7418
16
- django_bulk_hooks-0.1.193.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- django_bulk_hooks-0.1.193.dist-info/RECORD,,
14
+ django_bulk_hooks-0.1.195.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
+ django_bulk_hooks-0.1.195.dist-info/METADATA,sha256=yTqvM4OrMo1ub6gs6sjNek6nkwMmVyzgJHMBObUXQQg,7418
16
+ django_bulk_hooks-0.1.195.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
+ django_bulk_hooks-0.1.195.dist-info/RECORD,,