Opened 16 years ago

Closed 16 years ago

Last modified 15 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: dev
Severity: Keywords:
Cc: Jannis Leidel Triage Stage: Accepted
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

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 16 years ago.
Raises a deprecation warning

Download all attachments as: .zip

Change History (6)

by Alex Gaynor, 16 years ago

Attachment: auto_add.diff added

Raises a deprecation warning

comment:1 by Jeff Anderson, 16 years ago

Has patch: set
Triage Stage: UnreviewedAccepted

comment:2 by anonymous, 16 years ago

Remember to close #7634.

comment:3 by Jannis Leidel, 16 years ago

Cc: jedzez added

comment:4 by Malcolm Tredinnick, 16 years ago

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 by Jannis Leidel, 15 years ago

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