views.py 文件源码

python
阅读 22 收藏 0 点赞 0 评论 0

项目:iguana 作者: iguana-project 项目源码 文件源码
def post(self, request):
        email = request.POST['email']
        # NOTE this does not provide the email address yet, since it seems like there
        #      is a bug in django (at least imo). The path with HttpResponseRedirect omits the extra_context-field
        # s.a. http://python.6.x6.nabble.com/Django-24944-Have-password-reset-pass-extra-
        #        context-to-the-email-template-rendering-as-well-td5097076.html
        # TODO did I mean url instead of email address?
        return password_reset(request, template_name='registration/password_reset_form.html',
                              post_reset_redirect='password_reset_done', extra_context={'email': email})


# TODO BUG does it work as intended again?
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号