Changes between Version 2 and Version 3 of Ticket #22995, comment 14
- Timestamp:
- Aug 6, 2014, 7:44:15 AM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22995, comment 14
v2 v3 1 1 We 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 2 3 Or, have a magical `models.DateField(default='now')` or the longer: `models.DateField(default=models.DateField.now)`3 Or, have a magical `models.DateField(default='now')` (solves the `now` vs `now()`) or the longer: `models.DateField(default=models.DateField.now)`