Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed #2071 -- documented the PasswordField (including cavaets). Than…

…ks to

asmodai for the initial patch.


git-svn-id: http://code.djangoproject.com/svn/django/trunk@3184 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
commit c4fa8a158aa3ca0623c867ae67afc47b92277ed6 1 parent b70a687
Malcolm Tredinnick authored June 21, 2006

Showing 1 changed file with 13 additions and 0 deletions. Show diff stats Hide diff stats

  1. 13  docs/model-api.txt
13  docs/model-api.txt
@@ -322,6 +322,19 @@ instead of a ``BooleanField`` with ``null=True``.
322 322
 
323 323
 The admin represents this as a ``<select>`` box with "Unknown", "Yes" and "No" choices.
324 324
 
  325
+``PasswordField``
  326
+~~~~~~~~~~~~~~~~~  
  327
+
  328
+A ``PasswordField`` is like a ``TextField`` but the characters that are
  329
+entered are masked, typically by asterisks (*), when entered into a form. Note
  330
+that though the data is masked on entry, it is sent as clear text to the
  331
+server and stored as plain text in the database. Additional measures (such as
  332
+using HTTPS) are needed to ensure the security of data sent from a form. This
  333
+field is probably more useful when used in a `custom manipulator`_ than
  334
+directly in a model.
  335
+
  336
+.. _custom manipulator: http://www.djangoproject.com/documentation/forms/#custom-forms-and-manipulators
  337
+
325 338
 ``PhoneNumberField``
326 339
 ~~~~~~~~~~~~~~~~~~~~
327 340
 

0 notes on commit c4fa8a1

Please sign in to comment.
Something went wrong with that request. Please try again.