Disable autocomplete on textfield in Django?
        Posted  
        
            by tau-neutrino
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by tau-neutrino
        
        
        
        Published on 2010-04-05T20:23:48Z
        Indexed on 
            2010/04/05
            20:43 UTC
        
        
        Read the original article
        Hit count: 369
        
Does anyone know how you can turn off autocompletion on a textfield in Django?
For example, a form that I generate from my model has an input field for a credit card number. It is bad practice to leave autocompletion on. When making the form by hand, I'd add a autocomplete="off" statement, but how do you do it in Django and still retain the form validation?
© Stack Overflow or respective owner