Actually set the revoked flag

This commit is contained in:
Raphael Michel
2019-04-02 09:44:09 +02:00
parent 2d37c6d94d
commit b261a2041a
3 changed files with 3 additions and 3 deletions

View File

@@ -105,7 +105,7 @@ class RevokeKeyView(APIView):
def post(self, request, format=None):
device = request.auth
device.api_token = None
device.revoked = True
device.save()
device.log_action('pretix.device.revoked', auth=device)