diff --git a/apps/objects/models.py b/apps/objects/models.py index 5bb173fdd..8f6460681 100755 --- a/apps/objects/models.py +++ b/apps/objects/models.py @@ -338,7 +338,7 @@ class Object(models.Model): """ if self.has_attribute(attribute): # Attribute already exists, update it. - attrib_obj = Attribute.objects.filter(object=self).filter(name=attribute)[0] + attrib_obj = Attribute.objects.filter(object=self).filter(name__iexact=attribute)[0] attrib_obj.value = new_value attrib_obj.save() else: @@ -355,7 +355,7 @@ class Object(models.Model): attribute: (str) The attribute's name. """ - attr = Attribute.objects.filter(object=self).filter(name=attribute) + attr = Attribute.objects.filter(object=self).filter(name__iexact=attribute) if attr.count() == 0: return False else: diff --git a/defines_global.py b/defines_global.py index 70c6e9dc8..eb20400a5 100755 --- a/defines_global.py +++ b/defines_global.py @@ -30,7 +30,7 @@ NOSAVE_FLAGS = ["CONNECTED"] NOSET_FLAGS = ["CONNECTED"] # These attribute names can't be modified by players. -NOSET_ATTRIBS = ["MONEY", "ALIAS", "LASTPAGED", "CHANLIST"] +NOSET_ATTRIBS = ["MONEY", "ALIAS", "LASTPAGED", "CHANLIST", "LAST", "LASTSITE"] # Server version number. EVENNIA_VERSION = 'Pre-Alpha'