mirror of
https://github.com/evennia/evennia.git
synced 2026-04-03 06:27:17 +02:00
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.
|
||||
"""
|
||||
if self.has_attribute(attrib):
|
||||
attrib = Attribute.objects.filter(object=self).filter(name=attrib)
|
||||
return attrib[0].value
|
||||
attrib = Attribute.objects.filter(attr_object=self).filter(attr_name=attrib)
|
||||
return attrib[0].attr_value
|
||||
else:
|
||||
if default:
|
||||
return default
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue