8000 Page has no attribute site_id [Docs] (#6614) (#6642) · django-cms/django-cms@2fb6bc8 · GitHub
[go: up one dir, main page]

Skip to content

Commit 2fb6bc8

Browse files
authored
Page has no attribute site_id [Docs] (#6614) (#6642)
1 parent abf5862 commit 2fb6bc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/how_to/extending_page_title.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ In this example, we need to loop over the titles for the page, and populate the
223223
# we now also need to get the titleset (i.e. different language titles)
224224
# for this page
225225
page = self._get_page()
226-
titleset = page.title_set.filter(language__in=get_language_list(page.site_id))
226+
titleset = page.title_set.filter(language__in=get_language_list(page.node.site_id))
227227

228228
# create a 3-tuple of (title_extension, url, title)
229229
nodes = [(title_extension, url, title.title) for (

0 commit comments

Comments
 (0)
0