From 1e76d9ce60cdc691a32e6acc2561fecb696a171e Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 17 Jun 2019 18:22:02 +0000 Subject: [PATCH] Fixed buggy guard code - Legacy-Id: 16278 --- ietf/community/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ietf/community/utils.py b/ietf/community/utils.py index de322bf7c..357a48366 100644 --- a/ietf/community/utils.py +++ b/ietf/community/utils.py @@ -81,7 +81,7 @@ def update_name_contains_indexes_with_new_doc(doc): # Django doesn't support a reversed regex operator, and regexp # support needs backend-specific code so custom SQL is a bit # cumbersome too - if re.search(r.text, doc.name) and not d in r.name_contains_index.all(): + if re.search(r.text, doc.name) and not doc in r.name_contains_index.all(): r.name_contains_index.add(doc) def docs_matching_community_list_rule(rule):