Changes between Version 1 and Version 2 of Ticket #22995, comment 14


Ignore:
Timestamp:
Aug 6, 2014, 7:38:09 AM (10 years ago)
Author:
Collin Anderson

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22995, comment 14

    v1 v2  
    11We wouldn't ever consider adding a `models.now()` shortcut, would we? It's a little magical, but a very common use case. The import is what bugs me the most. You need to import something from "utils" in many of your models files. It seems similar to `models.SET_NULL`.
     2
     3Or, have a magical `models.DateField(default='now')` or the longer: `models.DateField(default=models.DateField.now)`
Back to Top