Skip to content

Commit

Permalink
Tweaked docs to avoid reformatting given new black version.
Browse files Browse the repository at this point in the history
  • Loading branch information
nessita authored Jan 30, 2025
1 parent cbb0812 commit fd3cfd8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 2 additions & 3 deletions docs/ref/contrib/postgres/aggregates.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,10 @@ General-purpose aggregation functions

Examples::

"some_field"
"-some_field"
from django.db.models import F

F("some_field").desc()
ArrayAgg("a_field", order_by="-some_field")
ArrayAgg("a_field", order_by=F("some_field").desc())

.. deprecated:: 5.2

Expand Down
12 changes: 6 additions & 6 deletions docs/releases/1.10.txt
Original file line number Diff line number Diff line change
Expand Up @@ -687,13 +687,13 @@ If you have an old Django project with MD5 or SHA1 (even salted) encoded
passwords, be aware that these can be cracked fairly easily with today's
hardware. To make Django users acknowledge continued use of weak hashers, the
following hashers are removed from the default :setting:`PASSWORD_HASHERS`
setting::
setting:

"django.contrib.auth.hashers.SHA1PasswordHasher"
"django.contrib.auth.hashers.MD5PasswordHasher"
"django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher"
"django.contrib.auth.hashers.UnsaltedMD5PasswordHasher"
"django.contrib.auth.hashers.CryptPasswordHasher"
* ``"django.contrib.auth.hashers.SHA1PasswordHasher"``
* ``"django.contrib.auth.hashers.MD5PasswordHasher"``
* ``"django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher"``
* ``"django.contrib.auth.hashers.UnsaltedMD5PasswordHasher"``
* ``"django.contrib.auth.hashers.CryptPasswordHasher"``

Consider using a :ref:`wrapped password hasher <wrapping-password-hashers>` to
strengthen the hashes in your database. If that's not feasible, add the
Expand Down

0 comments on commit fd3cfd8

Please sign in to comment.