summaryrefslogtreecommitdiff
path: root/ishtar_common/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common/models.py')
-rw-r--r--ishtar_common/models.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/ishtar_common/models.py b/ishtar_common/models.py
index 9a3eac46a..3f917663c 100644
--- a/ishtar_common/models.py
+++ b/ishtar_common/models.py
@@ -2250,7 +2250,7 @@ class DocumentTemplate(models.Model):
new_content = []
for content in base_content:
content = copy.copy(content)
- for text in content.find_all(text=re.compile("items.0")):
+ for text in content.find_all(string=re.compile("items.0")):
fixed_text = text.replace("items.0", replace_str)
text.replace_with(fixed_text)
for image in content.find_all(