Django

Code

Changeset 3184

Show
Ignore:
Timestamp:
06/20/06 23:49:12 (2 years ago)
Author:
mtredinnick
Message:

Fixed #2071 -- documented the PasswordField? (including cavaets). Thanks to
asmodai for the initial patch.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/model-api.txt

    r3126 r3184  
    322322 
    323323The admin represents this as a ``<select>`` box with "Unknown", "Yes" and "No" choices. 
     324 
     325``PasswordField`` 
     326~~~~~~~~~~~~~~~~~   
     327 
     328A ``PasswordField`` is like a ``TextField`` but the characters that are 
     329entered are masked, typically by asterisks (*), when entered into a form. Note 
     330that though the data is masked on entry, it is sent as clear text to the 
     331server and stored as plain text in the database. Additional measures (such as 
     332using HTTPS) are needed to ensure the security of data sent from a form. This 
     333field is probably more useful when used in a `custom manipulator`_ than 
     334directly in a model. 
     335 
     336.. _custom manipulator: http://www.djangoproject.com/documentation/forms/#custom-forms-and-manipulators 
    324337 
    325338``PhoneNumberField``