mirror of
https://github.com/django/django.git
synced 2025-04-14 20:34:36 +00:00
magic-removal: Fixed #1414 -- Added __getattr__() to LazyDate. Thanks, akaihola
git-svn-id: http://code.djangoproject.com/svn/django/branches/magic-removal@2439 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
bd5a98c93f
commit
d26558ebf3
@ -35,3 +35,6 @@ class LazyDate:
|
||||
|
||||
def __get_value__(self):
|
||||
return datetime.datetime.now() + self.delta
|
||||
|
||||
def __getattr__(self, attr):
|
||||
return getattr(self.__get_value__(), attr)
|
||||
|
Loading…
x
Reference in New Issue
Block a user