Added generic relation from attribute values back to Attribute.
[philo.git] / models / base.py
index 5ca782a..5d9d761 100644 (file)
@@ -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