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:
6f2781d
)
Removed apparently-vestigial Entity.attribute property.
author
Stephen Burrows
<stephen.r.burrows@gmail.com>
Mon, 21 Feb 2011 22:22:24 +0000
(17:22 -0500)
committer
Stephen Burrows
<stephen.r.burrows@gmail.com>
Mon, 21 Feb 2011 22:22:24 +0000
(17:22 -0500)
models/base.py
patch
|
blob
|
history
diff --git
a/models/base.py
b/models/base.py
index
836fe4a
..
faac89b
100644
(file)
--- a/
models/base.py
+++ b/
models/base.py
@@
-55,10
+55,6
@@
def unregister_value_model(model):
class AttributeValue(models.Model):
attribute_set = generic.GenericRelation('Attribute', content_type_field='value_content_type', object_id_field='value_object_id')
class AttributeValue(models.Model):
attribute_set = generic.GenericRelation('Attribute', content_type_field='value_content_type', object_id_field='value_object_id')
- @property
- def attribute(self):
- return self.attribute_set.all()[0]
-
def set_value(self, value):
raise NotImplementedError
def set_value(self, value):
raise NotImplementedError