Updated documentation for User.objects.make_random_password, fixing
punctuation at the same time. git-svn-id: http://code.djangoproject.com/svn/django/trunk@5490 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
parent
b0fa08b9e0
commit
b6b1ab22b5
|
@ -161,8 +161,8 @@ The ``User`` model has a custom manager that has the following helper functions:
|
||||||
* ``make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789')``
|
* ``make_random_password(length=10, allowed_chars='abcdefghjkmnpqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ23456789')``
|
||||||
Returns a random password with the given length and given string of
|
Returns a random password with the given length and given string of
|
||||||
allowed characters. (Note that the default value of ``allowed_chars``
|
allowed characters. (Note that the default value of ``allowed_chars``
|
||||||
doesn't contain ``"I"`` or letters that look like it, to avoid user
|
doesn't contain letters that can cause user confusion, including
|
||||||
confusion.
|
``1``, ``I`` and ``0``).
|
||||||
|
|
||||||
Basic usage
|
Basic usage
|
||||||
-----------
|
-----------
|
||||||
|
|
Loading…
Reference in New Issue