events: fix typo in events API

This commit is contained in:
Jens Langhammer 2021-03-03 16:54:59 +01:00
parent f4580a1097
commit 77d5ba2862
2 changed files with 4 additions and 4 deletions

View File

@ -29,7 +29,7 @@ class EventSerializer(ModelSerializer):
] ]
class EventTopPerUserSerialier(Serializer): class EventTopPerUserSerializer(Serializer):
"""Response object of Event's top_per_user""" """Response object of Event's top_per_user"""
application = DictField() application = DictField()
@ -60,7 +60,7 @@ class EventViewSet(ReadOnlyModelViewSet):
filterset_fields = ["action"] filterset_fields = ["action"]
@swagger_auto_schema( @swagger_auto_schema(
method="GET", responses={200: EventTopPerUserSerialier(many=True)} method="GET", responses={200: EventTopPerUserSerializer(many=True)}
) )
@action(detail=False, methods=["GET"]) @action(detail=False, methods=["GET"])
def top_per_user(self, request: Request): def top_per_user(self, request: Request):

View File

@ -1159,7 +1159,7 @@ paths:
description: '' description: ''
type: array type: array
items: items:
$ref: '#/definitions/EventTopPerUserSerialier' $ref: '#/definitions/EventTopPerUser'
tags: tags:
- events - events
parameters: [] parameters: []
@ -9709,7 +9709,7 @@ definitions:
type: string type: string
format: date-time format: date-time
readOnly: true readOnly: true
EventTopPerUserSerialier: EventTopPerUser:
description: Response object of Event's top_per_user description: Response object of Event's top_per_user
required: required:
- application - application