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


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

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #22995, comment 14

    v2 v3  
    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`.
    22
    3 Or, have a magical `models.DateField(default='now')` or the longer: `models.DateField(default=models.DateField.now)`
     3Or, have a magical `models.DateField(default='now')` (solves the `now` vs `now()`) or the longer: `models.DateField(default=models.DateField.now)`
Back to Top