Fixed #119: forced redirection to login even with API_AUTHENTICATION_REQUIRED=False

This commit is contained in:
Eliot Berriot 2018-03-15 22:34:00 +01:00
commit 4298c4236e
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
6 changed files with 14 additions and 3 deletions

View file

@ -240,6 +240,7 @@ class TagViewSet(viewsets.ReadOnlyModelViewSet):
class Search(views.APIView):
max_results = 3
permission_classes = [ConditionalAuthentication]
def get(self, request, *args, **kwargs):
query = request.GET['query']