Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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
  • Loading branch information...
commit d26558ebf3e7ec5c2f94e8644620259b6d172287 1 parent bd5a98c
@adrianholovaty adrianholovaty authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  django/db/models/__init__.py
View
3  django/db/models/__init__.py
@@ -35,3 +35,6 @@ def __repr__(self):
def __get_value__(self):
return datetime.datetime.now() + self.delta
+
+ def __getattr__(self, attr):
+ return getattr(self.__get_value__(), attr)

0 comments on commit d26558e

Please sign in to comment.
Something went wrong with that request. Please try again.