X-Git-Url: http://git.ithinksw.org/philo.git/blobdiff_plain/61b73fe068172f02d6c47e2b5387161919ec9618..484c42694c9d4f2e5ad762d94fdc2384ad27872d:/philo/models/base.py?ds=inline diff --git a/philo/models/base.py b/philo/models/base.py index e7918f5..8aef89a 100644 --- a/philo/models/base.py +++ b/philo/models/base.py @@ -284,7 +284,7 @@ class Entity(models.Model): """An abstract class that simplifies access to related attributes. Most models provided by Philo subclass Entity.""" __metaclass__ = EntityBase - attribute_set = generic.GenericRelation(Attribute, content_type_field='entity_content_type', object_id_field='entity_object_id') + attribute_set = generic.GenericRelation(Attribute, content_type_field='entity_content_type', object_id_field='entity_object_id', related_name='%(app_label)s_%(class)s_set') def get_attribute_mapper(self, mapper=AttributeMapper): """