django-bulk-hooks 0.1.194__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,8 +230,9 @@ 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
- # Only add auto_now and auto_now_add fields that aren't already in the fields list
234
- if (hasattr(field, "auto_now") and field.auto_now) or (hasattr(field, "auto_now_add") and field.auto_now_add):
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:
235
236
  if field.name not in fields_set and field.name not in pk_fields:
236
237
  fields_set.add(field.name)
237
238
  if field.name != field.attname:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: django-bulk-hooks
3
- Version: 0.1.194
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=RSIPK-6w1_lNgfWOMJS5oSwjT9M5JP1vCquWCIc9CXY,28872
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.194.dist-info/LICENSE,sha256=dguKIcbDGeZD-vXWdLyErPUALYOvtX_fO4Zjhq481uk,1088
15
- django_bulk_hooks-0.1.194.dist-info/METADATA,sha256=1_QoRmDbddARMGeiiuQ28XxILRd7UZacnheHjJ3fKB0,7418
16
- django_bulk_hooks-0.1.194.dist-info/WHEEL,sha256=b4K_helf-jlQoXBBETfwnf4B04YC67LOev0jo4fX5m8,88
17
- django_bulk_hooks-0.1.194.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,,