-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Remove placeholder content fallbacks #6456
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f3699f2
6eea200
92de159
6658c58
8b33973
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -130,7 +130,7 @@ def test_no_cache_plugin(self): | |
request = self.get_request(page1_url) | ||
request.current_page = Page.objects.get(pk=page1.pk) | ||
request.toolbar = CMSToolbar(request) | ||
with self.assertNumQueries(FuzzyInt(18, 25)): | ||
with self.assertNumQueries(FuzzyInt(16, 23)): | ||
response1 = self.client.get(page1_url) | ||
content1 = response1.content | ||
|
||
10000
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,7 +125,7 @@ def test_preload_placeholders_for_page_with_inherit_off(self): | |
external_link='https://www.django-cms.org', | ||
) | ||
renderer = self.get_renderer(page=cms_page) | ||
renderer._preload_placeholders_for_page(cms_page, inherit=False) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. leave There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. inherit is False as default so I have left out adding this one unless you feel that it adds value. |
||
renderer._preload_placeholders_for_page(cms_page) | ||
|
||
self.assertIn(cms_page.pk, renderer._placeholders_by_page_cache) | ||
self.assertIn(placeholder_1.slot, renderer._placeholders_by_page_cache[cms_page.pk]) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is ok