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

Skip to content

Commit d8fe4ae

Browse files
pawelmarkowskibplociennik
authored andcommitted
Page has no attribute site_id [Docs] (django-cms#6614)
* plugin_instance.position = new_plugin.position in CMSPlugin.copy_plugin fix null position in copy_plugin method. CMSPlugin position not null + default = 0 * CMSplugin.position not null Django CMSPlugin.position null raises unorderable types: NoneType() < int() * fixed page has not attribute site_id
1 parent 8b72a79 commit d8fe4ae

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