modelviewset

Solutions on MaxInterview for modelviewset by the best coders in the world

showing results for - "modelviewset"
Alessio
31 Jan 2021
1class AccountViewSet(viewsets.ModelViewSet):
2    """
3    A simple ViewSet for viewing and editing accounts.
4    """
5    queryset = Account.objects.all()
6    serializer_class = AccountSerializer
7    permission_classes = [IsAccountAdminOrReadOnly]