From 49b6a0ba578b841f514d7b5e963175ac24bcbd97 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Fri, 25 May 2007 00:21:08 +0000 Subject: [PATCH] Minor fix to accomodate some database re-organization. --- apps/objects/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/objects/models.py b/apps/objects/models.py index c8f0cc6ac2..4fa5556fbf 100755 --- a/apps/objects/models.py +++ b/apps/objects/models.py @@ -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