from rest_framework.generics import ListAPIView, RetrieveAPIView
from rest_framework.permissions import AllowAny

from .models import Board
from .serializers import BoardSerializer


class board_list(ListAPIView):
    queryset = Board.objects.all()
    serializer_class = BoardSerializer
    permission_classes = (AllowAny,)


class board_detail(RetrieveAPIView):
    queryset = Board.objects.all()
    serializer_class = BoardSerializer
    lookup_field = 'name'
    model = Board

@@ -427,24 +427,61 @@
 dSerializer%0A
+    permission_classes = (AllowAny,)%0A
     lookup_f
@@ -492,12 +492,12 @@
  = '
-name
+slug
 '%0A  

change lookup field and add permissions