8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd3fef6 commit a6ac486Copy full SHA for a6ac486
cms/models/pagemodel.py
@@ -156,8 +156,7 @@ def __str__(self):
156
else:
157
title = _("No available title")
158
path = self.get_path(get_language(), fallback=True)
159
- path = f" (/{path}/)" if path else ""
160
- return force_str(title) + path
+ return force_str(title) + ("" if path is None else f" (/{path})")
161
162
def __repr__(self):
163
display = f'<{self.__module__}.{self.__class__.__name__} id={self.pk} object at {hex(id(self))}>'
0 commit comments