fix - ordering organization type
This commit is contained in:
@@ -210,6 +210,12 @@ class OrganizationTypeViewSet(SoftDeleteMixin, ModelViewSet):
|
||||
queryset = OrganizationType.objects.all()
|
||||
serializer_class = OrganizationTypeSerializer
|
||||
|
||||
def list(self, request, *args, **kwargs):
|
||||
""" all organization type """
|
||||
queryset = self.get_queryset().order_by('-modify_date')
|
||||
serializer = self.serializer_class(queryset, many=True)
|
||||
return Response(serializer.data, status=status.HTTP_200_OK)
|
||||
|
||||
|
||||
class OrganizationViewSet(BaseViewSet, SoftDeleteMixin, ModelViewSet, DynamicSearchMixin):
|
||||
""" Crud operations for organization model """ #
|
||||
|
||||
Reference in New Issue
Block a user