core: fix expired tokens not being returned by API

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-08-12 17:21:53 +02:00
parent 8cceacb33f
commit 1524efcf51
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ class TokenViewSet(UsedByMixin, ModelViewSet):
"""Token Viewset""" """Token Viewset"""
lookup_field = "identifier" lookup_field = "identifier"
queryset = Token.filter_not_expired() queryset = Token.objects.all()
serializer_class = TokenSerializer serializer_class = TokenSerializer
search_fields = [ search_fields = [
"identifier", "identifier",