and forgetful so here are my random notes
my_queryset.order_by('?')
import random random.shuffle(my_list)
n = 5 my_queryset.order_by('?')[:n]
No comments:
Post a Comment