Ver a proveniência

Feature: Add search function to boards

pull/179/head
winkidney há 4 anos
ascendente
cometimento
b7734ec232
1 ficheiros alterados com 2 adições e 1 eliminações
  1. +2
    -1
      core/views.py

+ 2
- 1
core/views.py Ver ficheiro

@@ -36,7 +36,8 @@ class PinViewSet(viewsets.ModelViewSet):

class BoardViewSet(viewsets.ModelViewSet):
serializer_class = api.BoardSerializer
filter_backends = (DjangoFilterBackend, OrderingFilter)
filter_backends = (DjangoFilterBackend, OrderingFilter, SearchFilter)
search_fields = ("name", )
filter_fields = ("submitter__username", )
ordering_fields = ('-id', )
ordering = ('-id', )


Carregando…
Cancelar
Guardar