API Documentation

Signed-off-by: Yohann D'ANELLO <yohann.danello@gmail.com>
This commit is contained in:
Yohann D'ANELLO 2020-12-23 21:06:30 +01:00
parent 801f711994
commit e60994e065
No known key found for this signature in database
GPG key ID: 3A75C55819C8CF85
12 changed files with 2650 additions and 6 deletions

View file

@ -32,4 +32,4 @@ class RoleViewSet(ReadOnlyProtectedModelViewSet):
serializer_class = RoleSerializer
filter_backends = [DjangoFilterBackend, SearchFilter]
filterset_fields = ['name', 'permissions', 'for_club', 'memberships__user', ]
SearchFilter = ['$name', '$for_club__name', ]
search_fields = ['$name', '$for_club__name', ]