Changes between Initial Version and Version 1 of Ticket #24281


Ignore:
Timestamp:
Feb 4, 2015, 12:52:58 PM (10 years ago)
Author:
djbug
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #24281 – Description

    initial v1  
    44https://github.com/django/django/blob/1.7/django/db/models/fields/__init__.py#L1146
    55
     6
     7{{{
    68    def pre_save(self, model_instance, add):
    79        if self.auto_now or (self.auto_now_add and add):
     
    1214            return super(DateField, self).pre_save(model_instance, add)
    1315
     16}}}
     17
    1418Instead of `datetime.date.today()`, this should use `timezone.now().date()`.
Back to Top