Skip to content

Commit 4f0169e

Browse files
committed
[5.1.x] Tweaked docs to avoid reformatting given new black version.
Backport of fd3cfd8 from main.
1 parent 9d1945d commit 4f0169e

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

docs/ref/contrib/postgres/aggregates.txt

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,10 @@ General-purpose aggregation functions
4949

5050
Examples::
5151

52-
"some_field"
53-
"-some_field"
5452
from django.db.models import F
5553

56-
F("some_field").desc()
54+
ArrayAgg("a_field", order_by="-some_field")
55+
ArrayAgg("a_field", order_by=F("some_field").desc())
5756

5857
.. versionchanged:: 5.0
5958

docs/releases/1.10.txt

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -687,13 +687,13 @@ If you have an old Django project with MD5 or SHA1 (even salted) encoded
687687
passwords, be aware that these can be cracked fairly easily with today's
688688
hardware. To make Django users acknowledge continued use of weak hashers, the
689689
following hashers are removed from the default :setting:`PASSWORD_HASHERS`
690-
setting::
690+
setting:
691691

692-
"django.contrib.auth.hashers.SHA1PasswordHasher"
693-
"django.contrib.auth.hashers.MD5PasswordHasher"
694-
"django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher"
695-
"django.contrib.auth.hashers.UnsaltedMD5PasswordHasher"
696-
"django.contrib.auth.hashers.CryptPasswordHasher"
692+
* ``"django.contrib.auth.hashers.SHA1PasswordHasher"``
693+
* ``"django.contrib.auth.hashers.MD5PasswordHasher"``
694+
* ``"django.contrib.auth.hashers.UnsaltedSHA1PasswordHasher"``
695+
* ``"django.contrib.auth.hashers.UnsaltedMD5PasswordHasher"``
696+
* ``"django.contrib.auth.hashers.CryptPasswordHasher"``
697697

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

0 commit comments

Comments
 (0)