Fixed a type - get_attribute_cache() should be get_attr_cache()

This commit is contained in:
Griatch 2012-11-09 23:17:10 +01:00
parent 8654d8cc48
commit d55bee8905
3 changed files with 570 additions and 485 deletions

View file

@ -1342,7 +1342,7 @@ class TypedObject(SharedMemoryModel):
"""
Get the actual attribute object named attribute_name
"""
attrib_obj = get_attribute_cache(self, attribute_name)
attrib_obj = get_attr_cache(self, attribute_name)
if not attrib_obj:
attrib_obj = _GA(self, "_attribute_class").objects.filter(
db_obj=self).filter(db_key__iexact=attribute_name)