Skip to content

Commit c3ae33a

Browse files
committed
fix update_index with Multi-lingual Content: update_index --remove --age=24 - removes all objects from index
1 parent a947dc3 commit c3ae33a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

haystack/management/commands/update_index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def update_backend(self, label, using):
378378
if self.start_date or self.end_date or total <= 0:
379379
# They're using a reduced set, which may not incorporate
380380
# all pks. Rebuild the list with everything.
381-
qs = index.index_queryset().values_list("pk", flat=True)
381+
qs = index.index_queryset(using=using).values_list("pk", flat=True)
382382
database_pks = set(smart_bytes(pk) for pk in qs)
383383
else:
384384
database_pks = set(

0 commit comments

Comments
 (0)