From: Stephen Burrows Date: Thu, 14 Oct 2010 15:18:24 +0000 (-0400) Subject: Added generic relation from attribute values back to Attribute. X-Git-Tag: philo-0.9~29^2~8^2~2 X-Git-Url: http://git.ithinksw.org/philo.git/commitdiff_plain/345e9cbecf62cf3bc7f697e33512e499a5b94fe4?hp=98bd3a178f3e62e5591e809ac61e07a5bf37c292 Added generic relation from attribute values back to Attribute. --- diff --git a/models/base.py b/models/base.py index 5ca782a..5d9d761 100644 --- a/models/base.py +++ b/models/base.py @@ -46,6 +46,7 @@ def unregister_value_model(model): class AttributeValue(models.Model): + attribute = generic.GenericRelation('Attribute', content_type_field='value_content_type', object_id_field='value_object_id') def apply_data(self, data): raise NotImplementedError