AttributeError:“函数”对象没有属性“复制” django

时间:2020-07-08 22:22:55

标签: python django

我试图在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'

有没有办法解决这个问题?

谢谢!

0 个答案:

没有答案