Skip to content

Commit

Permalink
Order by
Browse files Browse the repository at this point in the history
  • Loading branch information
viggo-devries committed Oct 1, 2024
1 parent a63e338 commit a35ad3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion oscarapi/views/admin/order.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

class OrderAdminList(generics.ListAPIView):
serializer_class = AdminOrderSerializer
queryset = Order.objects.get_queryset()
queryset = Order.objects.get_queryset().order_by("-date_placed")
permission_classes = (APIAdminPermission,)


Expand Down

0 comments on commit a35ad3d

Please sign in to comment.