#36275: Update auto_now fields when using bulk_update
-------------------------------------+-------------------------------------
Reporter: Rodolfo Becerra | Type: New
| feature
Status: new | Component: Database
| layer (models, ORM)
Version: 5.1 | Severity: Normal
Keywords: auto_now, | Triage Stage:
bulk_update | Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
I have seen an [[https://github.com/aykut/django-bulk-
update/issues/25|issue]] and I know that currently `bulk_update` does not
update the date fields that have the `auto_now=True` parameter when
calling
I have a suggestion to add a new parameter to the bulk_update method
`update_auto_now=True` or `auto_now=True` that updates the field if the
parameter is True (which by default it would be) and if the field has not
been previously updated before calling the method.
I would love to try this update if you guys see it viable.
--
Ticket URL: <https://code.djangoproject.com/ticket/36275>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/django-updates/01070195c94e63bc-f73b82fa-dd01-4bd1-8c1d-5fc89fd048cb-000000%40eu-central-1.amazonses.com.