Changes between Initial Version and Version 1 of Ticket #24281
- Timestamp:
- Feb 4, 2015, 12:52:58 PM (10 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #24281 – Description
initial v1 4 4 https://github.com/django/django/blob/1.7/django/db/models/fields/__init__.py#L1146 5 5 6 7 {{{ 6 8 def pre_save(self, model_instance, add): 7 9 if self.auto_now or (self.auto_now_add and add): … … 12 14 return super(DateField, self).pre_save(model_instance, add) 13 15 16 }}} 17 14 18 Instead of `datetime.date.today()`, this should use `timezone.now().date()`.