Opened 6 years ago

Last modified 3 years ago

#22995 new Cleanup/optimization

Deprecate auto_now and auto_now_add and document alternatives — at Initial Version

Reported by: Jannis Leidel Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: cmawebsite@…, someuniquename@… Triage Stage: Someday/Maybe
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


We've previously documented some side issues of the two options (e.g. #6434) but need to better clarify the downsides of those magic parameters. The ability to override the save method as well as the default parameter has long made this implicit feature capable of being replaced.

This would probably also be a way to not let users fall in the trap as documented in #16745 and #22571.

In a previous *old* discussion there were multiple core developers in favor of the deprecation:!topic/django-developers/TNYxwiXLTlI

Change History (0)

Note: See TracTickets for help on using tickets.
Back to Top