我试图在django的视图中传递两个不同的对象:
APIView和PasswordResetView:
class PasswordReset(APIView, PasswordResetView):
email_template_name = 'passreset/password_reset_email.html'
html_email_template_name = 'passreset/password_reset_email.html'
success_url = reverse_lazy('inicio:password_reset')
template_name = 'passreset/password_reset.html'
token_generator = PasswordResetToken()
但是我收到错误AttributeError: 'function' object has no attribute 'copy'
有没有办法解决这个问题?
谢谢!