[Django Upgrade] Fix one sub-query slicing issue (#10012)
[Django Upgrade] Fix one sub-query slicing issue (#10012)

Co-authored-by: John Tordoff <>
Johnetordoff/osf.io,Johnetordoff/osf.io,Johnetordoff/osf.io,Johnetordoff/osf.io