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:
@@ -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))
|
||||
|
||||
@@ -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 = (
|
||||
|
||||
Reference in New Issue
Block a user