Réarrangement du code; correction css; écriture uniquement du nouveau message
This commit is contained in:
18
profiles/views.py
Normal file
18
profiles/views.py
Normal file
@ -0,0 +1,18 @@
|
||||
from rest_framework.views import APIView
|
||||
from rest_framework.response import Response
|
||||
from rest_framework import authentication, permissions, status
|
||||
from rest_framework.authentication import SessionAuthentication
|
||||
from django.core import serializers
|
||||
|
||||
class BlockView(APIView):
|
||||
permission_classes = (permissions.IsAuthenticated,)
|
||||
authentication_classes = (SessionAuthentication,)
|
||||
|
||||
def post(self, request, pk):
|
||||
pass
|
||||
|
||||
def get(self, request, pk):
|
||||
pass
|
||||
|
||||
def delete(self, request, pk):
|
||||
pass
|
Reference in New Issue
Block a user