8000 add only('pk') where to get old_placeholders (#8249) · django-cms/django-cms@fc5b68c · GitHub
[go: up one dir, main page]

Skip to content

Commit fc5b68c

Browse files
jmit-modernvkenifsbraun
authored
add only('pk') where to get old_placeholders (#8249)
Co-authored-by: keni <v-keni@kexp.org> Co-authored-by: Fabian Braun <fsbraun@gmx.de>
1 parent de9031d commit fc5b68c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cms/migrations/0027_title_placeholders_data_migration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def forwards(apps, schema_editor):
9595
.using(db_alias)
9696
.filter(pk__in=old_placeholder_ids)
9797
.annotate(plugin_count=models.Count('cmsplugin'))
98+
.only("pk")
9899
)
99100

100101
if old_placeholders.filter(plugin_count__gt=0).exists():

0 commit comments

Comments
 (0)
0