Django

Code

Ticket #7634 (new)

Opened 5 months ago

Last modified 5 months ago

Using auto_now or auto_now_add should raise a DeprecationWarning

Reported by: Alex Assigned to: nobody
Milestone: Component: Database layer (models, ORM)
Version: SVN Keywords:
Cc: Triage Stage: Accepted
Has patch: 1 Needs documentation: 0
Needs tests: 0 Patch needs improvement: 0

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

auto_add.diff (0.7 kB) - added by Alex on 07/06/08 23:13:51.
Raises a deprecation warning

Change History

07/06/08 23:13:51 changed by Alex

  • attachment auto_add.diff added.

Raises a deprecation warning

07/07/08 12:57:24 changed by programmerq

  • needs_better_patch changed.
  • has_patch set to 1.
  • stage changed from Unreviewed to Accepted.
  • needs_tests changed.
  • needs_docs changed.

07/13/08 05:36:47 changed by anonymous

Remember to close #7634.


Add/Change #7634 (Using auto_now or auto_now_add should raise a DeprecationWarning)




Change Properties
Action