Opened 8 years ago

Closed 8 years ago

Last modified 8 years ago

#6221 closed (invalid)

auto_now and auto_now_add still documented

Reported by: philipp@… Owned by: nobody
Component: Documentation Version: master
Severity: Keywords: auto_now auto_now_add
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:



the auto_now and auto_now_add fields are still documented, even though they were removed Maybe one could insert a short version of the save() Method from this blog-post, so one knows about a possible replacement? :)

Philipp Wollermann

Change History (2)

comment:1 Changed 8 years ago by gwilson

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to invalid
  • Status changed from new to closed

The aren't gone yet, take a loot at the source for proof.

comment:2 Changed 8 years ago by info@…

Sorry, error on my part, I tried with

class TestModel(models.Model):
    dttest = models.DateTimeField(auto_now)

It didn't work and I overlooked, that I forgot to specify =True to the keyword argument, then I got an error saying "auto_now is not defined" and thought "Well, that must be the removal, which was announced way back" :) Thanks for pointing me to the source, I found my error :)

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