Minor fix to accomodate some database re-organization.
This commit is contained in:
parent
51301d3e3b
commit
49b6a0ba57
1 changed files with 2 additions and 2 deletions
|
|
@ -552,8 +552,8 @@ class Object(models.Model):
|
||||||
attrib: (str) The attribute's name.
|
attrib: (str) The attribute's name.
|
||||||
"""
|
"""
|
||||||
if self.has_attribute(attrib):
|
if self.has_attribute(attrib):
|
||||||
attrib = Attribute.objects.filter(object=self).filter(name=attrib)
|
attrib = Attribute.objects.filter(attr_object=self).filter(attr_name=attrib)
|
||||||
return attrib[0].value
|
return attrib[0].attr_value
|
||||||
else:
|
else:
|
||||||
if default:
|
if default:
|
||||||
return default
|
return default
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue