Opened 6 years ago

Last modified 3 years ago

#22995 new Cleanup/optimization

Deprecate auto_now and auto_now_add and document alternatives — at Version 1

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

Description (last modified by Jannis Leidel)

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 (1)

comment:1 Changed 6 years ago by Jannis Leidel

Description: modified (diff)
Note: See TracTickets for help on using tickets.
Back to Top