Answers for "modelviewset"

0

modelviewset

class AccountViewSet(viewsets.ModelViewSet):
    """
    A simple ViewSet for viewing and editing accounts.
    """
    queryset = Account.objects.all()
    serializer_class = AccountSerializer
    permission_classes = [IsAccountAdminOrReadOnly]
Posted by: Guest on March-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language