Commit 265c668e authored by amandazk's avatar amandazk

Mudanças pessoas

parent 4925d213
......@@ -14,27 +14,24 @@ class PessoaDestroy(generics.DestroyAPIView):
"""Excluindo pessoa"""
queryset = Pessoa.objects.all()
serializer_class = PessoaSerializer
permission_classes = (
permissions.IsAdminUser,
)
permission_classes = ()
class PessoaUpdate(generics.UpdateAPIView):
"""Update de pessoa"""
queryset = Pessoa.objects.all()
serializer_class = PessoaSerializer
permission_classes = (
permissions.IsAuthenticated,
)
permission_classes = ()
class PessoaCreate(generics.CreateAPIView):
"""Criando pessoa"""
queryset = Pessoa.objects.all()
serializer_class = PessoaSerializer
permission_classes = (
permissions.DjangoModelPermissions,
)
permission_classes = ()
class PessoaGet(generics.RetrieveAPIView):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment