Ticket #7173: related_cache_r7513.patch
File related_cache_r7513.patch, 567 bytes (added by , 17 years ago) |
---|
-
django/db/models/fields/related.py
165 165 # SingleRelatedObjectDescriptor instance. 166 166 def __init__(self, related): 167 167 self.related = related 168 self.cache_name = '_%s_cache' % related. field.name168 self.cache_name = '_%s_cache' % related.get_accessor_name() 169 169 170 170 def __get__(self, instance, instance_type=None): 171 171 if instance is None: