8000 removed dirty_statics · django-cms/django-cms@989313f · GitHub
[go: up one dir, main page]

Skip to content
10000

Commit 989313f

Browse files
authored
removed dirty_statics
1 parent 24c1eef commit 989313f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

cms/cms_toolbars.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ def init_placeholders(self):
235235
self.statics = StaticPlaceholder.objects.filter(
236236
Q(draft__in=placeholder_ids) | Q(public__in=placeholder_ids)
237237
)
238-
self.dirty_statics = [sp for sp in self.statics if sp.dirty]
239238
else:
240239
if toolbar.structure_mode_active and not toolbar.uses_legacy_structure_mode:
241240
# User has explicitly requested structure mode
@@ -246,7 +245,6 @@ def init_placeholders(self):
246245

247246
self.placeholders = renderer.get_rendered_placeholders()
248247
self.statics = renderer.get_rendered_static_placeholders()
249-
self.dirty_statics = [sp for sp in self.statics if sp.dirty]
250248

251249
def add_structure_mode(self):
252250
if self.page and not self.page.application_urls:

0 commit comments

Comments
 (0)
0