Ticket #2513: lazydate.2.patch
File lazydate.2.patch, 452 bytes (added by , 18 years ago) |
---|
-
django/core/meta/__init__.py
136 136 return "<LazyDate: %s>" % self.delta 137 137 138 138 def __get_value__(self): 139 return datetime.datetime.now() + self.delta139 return (datetime.datetime.now() + self.delta).date() 140 140 141 141 ################ 142 142 # MAIN CLASSES #