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"""
application = DictField()
@ -60,7 +60,7 @@ class EventViewSet(ReadOnlyModelViewSet):
filterset_fields = ["action"]
@swagger_auto_schema(
method="GET", responses={200: EventTopPerUserSerialier(many=True)}
method="GET", responses={200: EventTopPerUserSerializer(many=True)}
)
@action(detail=False, methods=["GET"])
def top_per_user(self, request: Request):

View file

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