Added missing Attribute import to philo.utils.entities.
authorStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 17 May 2011 19:34:12 +0000 (15:34 -0400)
committerStephen Burrows <stephen.r.burrows@gmail.com>
Tue, 17 May 2011 19:34:12 +0000 (15:34 -0400)
philo/utils/entities.py

index b911451..05e41fc 100644 (file)
@@ -117,6 +117,7 @@ class LazyAttributeMapperMixin(object):
                return self.get_attributes().get(key=key)
        
        def _add_to_cache(self, key):
+               from philo.models.base import Attribute
                try:
                        attr = self._raw_get_attribute(key)
                except Attribute.DoesNotExist: