summaryrefslogtreecommitdiff
path: root/ishtar_common
diff options
context:
space:
mode:
Diffstat (limited to 'ishtar_common')
-rw-r--r--ishtar_common/tests.py2
-rw-r--r--ishtar_common/utils_secretary.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py
index 6ae996057..1b6889232 100644
--- a/ishtar_common/tests.py
+++ b/ishtar_common/tests.py
@@ -2775,7 +2775,7 @@ class JinjaFilterTest(TestCase):
def test_capfirst(self):
self.assertEqual(
- utils_secretary.capfirst_filter("SAINT GEORGES D'OLÉRON"),
+ utils_secretary.capfirst_filter("saint georges d'oléron"),
"Saint georges d'oléron")
self.assertEqual(utils_secretary.capfirst_filter("s"), "S")
self.assertEqual(utils_secretary.capfirst_filter(""), "")
diff --git a/ishtar_common/utils_secretary.py b/ishtar_common/utils_secretary.py
index b8231c543..8446d20ec 100644
--- a/ishtar_common/utils_secretary.py
+++ b/ishtar_common/utils_secretary.py
@@ -29,7 +29,7 @@ def replace_line_breaks(value):
def capfirst_filter(value):
- return value.capitalize() if value else value
+ return value[0].upper() + value[1:] if value else value
def lowerfirst_filter(value):