From f9f24f66160e2d331e4e7eb6161ac4d8fe650d20 Mon Sep 17 00:00:00 2001 From: Greg Taylor Date: Thu, 24 May 2007 03:22:11 +0000 Subject: [PATCH] Don't return attribute matches if said attribute is in the hidden attribute list. --- apps/objects/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/objects/models.py b/apps/objects/models.py index 2bfa6ebe2a..4cbc7fafdb 100755 --- a/apps/objects/models.py +++ b/apps/objects/models.py @@ -429,7 +429,7 @@ class Object(models.Model): # wild-carded search string. match_exp = re.compile(functions_general.wildcard_to_regexp(searchstr), re.IGNORECASE) # If the regular expression search returns a match object, add to results. - return [attr for attr in attrs if match_exp.search(attr.name)] + return [attr for attr in attrs if match_exp.search(attr.name) and attr.name not in defines_global.HIDDEN_ATTRIBS] def has_flag(self, flag): """