Ticket #2513: lazydate.2.patch

File lazydate.2.patch, 452 bytes (added by wangbin@…, 9 years ago)

patch for django 0.91

  • django/core/meta/__init__.py

     
    136136        return "<LazyDate: %s>" % self.delta
    137137
    138138    def __get_value__(self):
    139         return datetime.datetime.now() + self.delta
     139        return (datetime.datetime.now() + self.delta).date()
    140140
    141141################
    142142# MAIN CLASSES #
Back to Top