Browse Source

PageTitlesFunctionMixin.

master 0.2.10
Erik Stein 7 years ago
parent
commit
1633c6cfc7
  1. 3
      CHANGES
  2. 6
      shared/utils/models/pages.py

3
CHANGES

@ -1,3 +1,6 @@
0.2.10 2018-09-27
- Fix in PageTitlesFunctionMixin
0.2.8 2018-09-21
- get_admin_url in debug_utils

6
shared/utils/models/pages.py

@ -32,7 +32,8 @@ class PageTitlesFunctionMixin(object):
def get_title(self):
return slimdown(firstof(
self.title,
self.get_short_title()
self.get_short_title(),
''
))
def get_short_title(self):
@ -41,9 +42,10 @@ class PageTitlesFunctionMixin(object):
def get_window_title(self):
return strip_tags(slimdown(
firstof(
self.window_title,
getattr(self, 'window_title', None),
self.get_short_title(),
self.get_first_title_line(),
''
)
))

Loading…
Cancel
Save