Ticket #7214: a

File a, 551 bytes (added by m.gajda@…, 17 years ago)
Line 
1Index: django/db/models/fields/related.py
2===================================================================
3--- django/db/models/fields/related.py (wersja 7523)
4+++ django/db/models/fields/related.py (kopia robocza)
5@@ -165,7 +165,7 @@
6 # SingleRelatedObjectDescriptor instance.
7 def __init__(self, related):
8 self.related = related
9- self.cache_name = '_%s_cache' % related.field.name
10+ self.cache_name = '_%s_cache' % related.name
11
12 def __get__(self, instance, instance_type=None):
13 if instance is None:
Back to Top