推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
melaozhu
V2EX  ›  Python

Django的UpdateView所对应UpdateForm中如何初始化fields?

  •  
  •   melaozhu ·
    laozhu · Oct 26, 2013 · 5570 views
    This topic created in 4716 days ago, the information mentioned may be changed or developed.
    一些fields是可以自动获取到的,但是密码好像不行啊,每次修改资料都得重新输密码,累死。
    有没有什么办法能够自动填入值,求助
    4 replies  •  1970-01-01 08:00:00 +08:00
    jokaye
        1
    jokaye  
       Oct 26, 2013
    密码已经哈希过了,怎么传?
    melaozhu
        2
    melaozhu  
    OP
       Oct 26, 2013
    @jokaye 上次在网上看到一篇帖子说是可以读出来,只是前端显示为****,这样用户可以选择修改或者保持不动。
    booksmith
        3
    booksmith  
       Oct 26, 2013
    被加密过的密码如果服务器还能反推回来,那肯定是不合法的。
    jokaye
        4
    jokaye  
       Oct 26, 2013
    @melaozhu 如果前端显示成****, <input type='text'> 会是怎样呢?
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   958 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 22:45 · PVG 06:45 · LAX 15:45 · JFK 18:45
    ♥ Do have faith in what you're doing.