1
0
mirror of https://github.com/django/django.git synced 2025-10-30 17:16:10 +00:00

Refs #32956 -- Changed "afterwards" to "afterward" in docs and comments.

This also removes unnecessary comments with the previous spelling.

AP Stylebook has a short entry to advise the preferred spelling for
"en-us". "Afterwards" is preferred in British English.
This commit is contained in:
David Smith
2021-07-27 09:41:51 +01:00
committed by GitHub
parent 3d9040a50b
commit 1cba320786
18 changed files with 28 additions and 41 deletions

View File

@@ -156,7 +156,7 @@ class BaseDatabaseSchemaEditor:
def table_sql(self, model):
"""Take a model and return its table definition."""
# Add any unique_togethers (always deferred, as some fields might be
# created afterwards, like geometry fields with some backends).
# created afterward, like geometry fields with some backends).
for field_names in model._meta.unique_together:
fields = [model._meta.get_field(field) for field in field_names]
self.deferred_sql.append(self._create_unique_sql(model, fields))

View File

@@ -100,7 +100,7 @@ class MigrationGraph:
"""
This may create dummy nodes if they don't yet exist. If
`skip_validation=True`, validate_consistency() should be called
afterwards.
afterward.
"""
if child not in self.nodes:
error_message = (