Opened 8 years ago

Closed 8 years ago

Last modified 7 years ago

#7634 closed (wontfix)

Using auto_now or auto_now_add should raise a DeprecationWarning

Reported by: Alex Gaynor Owned by: nobody
Component: Database layer (models, ORM) Version: master
Severity: Keywords:
Cc: Jannis Leidel Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

To my understanding these are both slated for eventual removal in favor of the default kwarg and overiding the save() method, therefore they should raise a DeprecationWarning to alert people of this fact.

Attachments (1)

auto_add.diff (763 bytes) - added by Alex Gaynor 8 years ago.
Raises a deprecation warning

Download all attachments as: .zip

Change History (6)

Changed 8 years ago by Alex Gaynor

Attachment: auto_add.diff added

Raises a deprecation warning

comment:1 Changed 8 years ago by Jeff Anderson

Has patch: set
Needs documentation: unset
Needs tests: unset
Patch needs improvement: unset
Triage Stage: UnreviewedAccepted

comment:2 Changed 8 years ago by anonymous

Remember to close #7634.

comment:3 Changed 8 years ago by Jannis Leidel

Cc: jedzez added

comment:4 Changed 8 years ago by Malcolm Tredinnick

Resolution: wontfix
Status: newclosed

For better or worse, these features are in 1.0 and so aren't going away in the near future.

comment:5 Changed 7 years ago by Jannis Leidel

Cc: Jannis Leidel added; jedzez removed
Note: See TracTickets for help on using tickets.
Back to Top