Django

Code

Changeset 4497

Show
Ignore:
Timestamp:
02/13/07 00:06:09 (2 years ago)
Author:
mtredinnick
Message:

Fixed #3377 -- Fixed subtle infinite recursion bug in LazyDate? objects. Thanks
to brut.alll@gmail.com.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/AUTHORS

    r4490 r4497  
    5858    Simon Blanchard 
    5959    Andrew Brehaut <http://brehaut.net/blog> 
     60    brut.alll@gmail.com 
    6061    Jonathan Buchanan <jonathan.buchanan@gmail.com> 
    6162    Antonio Cavedoni <http://cavedoni.com/> 
  • django/trunk/django/db/models/__init__.py

    r4265 r4497  
    5151 
    5252    def __getattr__(self, attr): 
     53        if attr == 'delta': 
     54            # To fix ticket #3377. Note that normal access to LazyDate.delta 
     55            # (after construction) will still work, because they don't go 
     56            # through __getattr__). This is mainly needed for unpickling. 
     57            raise AttributeError 
    5358        return getattr(self.__get_value__(), attr)