Skip to content

Commit dbdc192

Browse files
smithdc1felixxm
authored andcommitted
Preferred usage of among/while to amongst/whilst.
1 parent 25352dc commit dbdc192

File tree

13 files changed

+23
-24
lines changed

13 files changed

+23
-24
lines changed

django/core/checks/model_checks.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def check_all_models(app_configs=None, **kwargs):
6464
Error(
6565
"index name '%s' is not unique %s %s." % (
6666
index_name,
67-
'for model' if len(model_labels) == 1 else 'amongst models:',
67+
'for model' if len(model_labels) == 1 else 'among models:',
6868
', '.join(sorted(model_labels)),
6969
),
7070
id='models.E029' if len(model_labels) == 1 else 'models.E030',
@@ -77,7 +77,7 @@ def check_all_models(app_configs=None, **kwargs):
7777
Error(
7878
"constraint name '%s' is not unique %s %s." % (
7979
constraint_name,
80-
'for model' if len(model_labels) == 1 else 'amongst models:',
80+
'for model' if len(model_labels) == 1 else 'among models:',
8181
', '.join(sorted(model_labels)),
8282
),
8383
id='models.E031' if len(model_labels) == 1 else 'models.E032',

docs/howto/writing-migrations.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ If you change a :class:`~django.db.models.ManyToManyField` to use a ``through``
327327
model, the default migration will delete the existing table and create a new
328328
one, losing the existing relations. To avoid this, you can use
329329
:class:`.SeparateDatabaseAndState` to rename the existing table to the new
330-
table name whilst telling the migration autodetector that the new model has
330+
table name while telling the migration autodetector that the new model has
331331
been created. You can check the existing table name through
332332
:djadmin:`sqlmigrate` or :djadmin:`dbshell`. You can check the new table name
333333
with the through model's ``_meta.db_table`` property. Your new ``through``

docs/ref/checks.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -343,11 +343,11 @@ Models
343343
* **models.E028**: ``db_table`` ``<db_table>`` is used by multiple models:
344344
``<model list>``.
345345
* **models.E029**: index name ``<index>`` is not unique for model ``<model>``.
346-
* **models.E030**: index name ``<index>`` is not unique amongst models:
346+
* **models.E030**: index name ``<index>`` is not unique among models:
347347
``<model list>``.
348348
* **models.E031**: constraint name ``<constraint>`` is not unique for model
349349
``<model>``.
350-
* **models.E032**: constraint name ``<constraint>`` is not unique amongst
350+
* **models.E032**: constraint name ``<constraint>`` is not unique among
351351
models: ``<model list>``.
352352
* **models.E033**: The index name ``<index>`` cannot start with an underscore
353353
or a number.

docs/ref/forms/fields.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -711,7 +711,7 @@ For each field, we describe the default widget used if you don't specify
711711
After the field has been cleaned and validated, the ``UploadedFile``
712712
object will have an additional ``image`` attribute containing the Pillow
713713
`Image`_ instance used to check if the file was a valid image. Pillow
714-
closes the underlying file descriptor after verifying an image, so whilst
714+
closes the underlying file descriptor after verifying an image, so while
715715
non-image data attributes, such as ``format``, ``height``, and ``width``,
716716
are available, methods that access the underlying image data, such as
717717
``getdata()`` or ``getpixel()``, cannot be used without reopening the file.
@@ -1354,7 +1354,7 @@ By default, :class:`ModelChoiceField` and :class:`ModelMultipleChoiceField` use
13541354

13551355
When iterated, ``ModelChoiceIterator`` yields 2-tuple choices containing
13561356
:class:`ModelChoiceIteratorValue` instances as the first ``value`` element in
1357-
each choice. ``ModelChoiceIteratorValue`` wraps the choice value whilst
1357+
each choice. ``ModelChoiceIteratorValue`` wraps the choice value while
13581358
maintaining a reference to the source model instance that can be used in custom
13591359
widget implementations, for example, to add `data-* attributes`_ to
13601360
``<option>`` elements.

docs/ref/models/querysets.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1710,7 +1710,7 @@ to refer to the queryset's model.
17101710

17111711
On PostgreSQL only, you can pass ``no_key=True`` in order to acquire a weaker
17121712
lock, that still allows creating rows that merely reference locked rows
1713-
(through a foreign key, for example) whilst the lock is in place. The
1713+
(through a foreign key, for example) while the lock is in place. The
17141714
PostgreSQL documentation has more details about `row-level lock modes
17151715
<https://www.postgresql.org/docs/current/explicit-locking.html#LOCKING-ROWS>`_.
17161716

docs/releases/1.9.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ Minor features
246246

247247
* The new :meth:`GDALRaster.warp() <django.contrib.gis.gdal.GDALRaster.warp>`
248248
method allows warping a raster by specifying target raster properties such as
249-
origin, width, height, or pixel size (amongst others).
249+
origin, width, height, or pixel size (among others).
250250

251251
* The new :meth:`GDALRaster.transform()
252252
<django.contrib.gis.gdal.GDALRaster.transform>` method allows transforming a

docs/releases/2.1.15.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ inlines in the admin form of an otherwise view-only parent model.
3232
Given the complexity of the Django admin, and in-particular the permissions
3333
related checks, it is the view of the Django security team that this change was
3434
necessary: that it is not currently feasible to maintain the existing behavior
35-
whilst escaping the potential privilege escalation in a way that would avoid a
35+
while escaping the potential privilege escalation in a way that would avoid a
3636
recurrence of similar issues in the future, and that would be compatible with
3737
Django's *safe by default* philosophy.
3838

docs/releases/2.2.8.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ inlines in the admin form of an otherwise view-only parent model.
3333
Given the complexity of the Django admin, and in-particular the permissions
3434
related checks, it is the view of the Django security team that this change was
3535
necessary: that it is not currently feasible to maintain the existing behavior
36-
whilst escaping the potential privilege escalation in a way that would avoid a
36+
while escaping the potential privilege escalation in a way that would avoid a
3737
recurrence of similar issues in the future, and that would be compatible with
3838
Django's *safe by default* philosophy.
3939

docs/spelling_wordlist

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ Ai
1212
Alchin
1313
alphanumerics
1414
amet
15-
amongst
1615
analytics
1716
apnumber
1817
app

docs/topics/db/queries.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@ is ``'Beatles Blog'``::
495495

496496
This spanning can be as deep as you'd like.
497497

498-
It works backwards, too. Whilst it :attr:`can be customized
498+
It works backwards, too. While it :attr:`can be customized
499499
<.ForeignKey.related_query_name>`, by default you refer to a "reverse"
500500
relationship in a lookup using the lowercase name of the model.
501501

0 commit comments

Comments
 (0)