change company view to descending order by created date
This commit is contained in:
@@ -24,7 +24,7 @@ from utils import woocommerce
|
||||
|
||||
|
||||
class CompanyViewSet(viewsets.ModelViewSet):
|
||||
queryset = Company.objects.all()
|
||||
queryset = Company.objects.all().order_by('-created')
|
||||
serializer_class = CompanySerializer
|
||||
permission_classes = [IsAuthenticatedOrReadOnly, IsCreator]
|
||||
filterset_class = CompanyTagFilter
|
||||
|
||||
Reference in New Issue
Block a user