fix(openapi): Fix spec generation for PasswordReset

This commit is contained in:
Georg Krause 2022-10-09 14:56:03 +02:00
parent d1d57eb19b
commit 3d328d5f5f
No known key found for this signature in database
GPG Key ID: 2970D504B2183D22
1 changed files with 2 additions and 2 deletions

View File

@ -12,7 +12,7 @@ from rest_framework import viewsets
from rest_framework.decorators import action
from rest_framework.response import Response
from drf_spectacular.utils import extend_schema
from drf_spectacular.utils import extend_schema, extend_schema_view
from funkwhale_api.common import authentication
from funkwhale_api.common import preferences
@ -51,7 +51,7 @@ class VerifyEmailView(registration_views.VerifyEmailView):
action = "verify-email"
@extend_schema(operation_id="change_password")
@extend_schema_view(post=extend_schema(operation_id="change_password"))
class PasswordChangeView(rest_auth_views.PasswordChangeView):
action = "password-change"