Browse Source

#657: no need to sort queryset that is deleted

Rafał Pitoń 8 years ago
parent
commit
fbb923faa3
1 changed files with 0 additions and 1 deletions
  1. 0 1
      misago/core/pgutils.py

+ 0 - 1
misago/core/pgutils.py

@@ -64,7 +64,6 @@ def batch_delete(queryset, step=50):
     Another util cos paginator goes bobbins when you are deleting
     """
     queryset_exists = True
-    queryset = queryset.order_by('pk')
     while queryset_exists:
         for obj in queryset[:step]:
             yield obj