SyntaxFix
Write A Post
Hire A Developer
Questions
User order by with that field, and then do distinct.
ProductOrder.objects.order_by('category').values_list('category', flat=True).distinct()