git.ithinksw.org
/
philo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98bd3a1
)
Added generic relation from attribute values back to Attribute.
author
Stephen Burrows
<stephen.r.burrows@gmail.com>
Thu, 14 Oct 2010 15:18:24 +0000
(11:18 -0400)
committer
Stephen Burrows
<stephen.r.burrows@gmail.com>
Thu, 14 Oct 2010 15:18:24 +0000
(11:18 -0400)
models/base.py
patch
|
blob
|
history
diff --git
a/models/base.py
b/models/base.py
index
5ca782a
..
5d9d761
100644
(file)
--- 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