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]