diff options
| author | Ville Skyttä <ville.skytta@iki.fi> | 2019-04-14 10:44:56 +0300 |
|---|---|---|
| committer | Mariusz Felisiak <felisiak.mariusz@gmail.com> | 2019-04-18 09:33:53 +0200 |
| commit | 03db5fddfd0c76303ec83eb1cd91a6d2dc4441cb (patch) | |
| tree | e269b21b92c6b771ddc0f8e08fc7a1a6ad62643a /django | |
| parent | 177fa08339c4908afbefbda5dceabe72641ec915 (diff) | |
Fixed typos in docs, comments, and exception messages.
Diffstat (limited to 'django')
| -rw-r--r-- | django/core/management/commands/dumpdata.py | 2 | ||||
| -rw-r--r-- | django/core/serializers/base.py | 6 | ||||
| -rw-r--r-- | django/db/backends/base/operations.py | 2 | ||||
| -rw-r--r-- | django/db/migrations/operations/utils.py | 2 | ||||
| -rw-r--r-- | django/db/models/base.py | 2 | ||||
| -rw-r--r-- | django/forms/forms.py | 2 |
6 files changed, 8 insertions, 8 deletions
diff --git a/django/core/management/commands/dumpdata.py b/django/core/management/commands/dumpdata.py index ce936c5459..2968f74805 100644 --- a/django/core/management/commands/dumpdata.py +++ b/django/core/management/commands/dumpdata.py @@ -110,7 +110,7 @@ class Command(BaseCommand): app_list_value = app_list.setdefault(app_config, []) - # We may have previously seen a "all-models" request for + # We may have previously seen an "all-models" request for # this app (no model qualifier was given). In this case # there is no need adding specific models to the list. if app_list_value is not None: diff --git a/django/core/serializers/base.py b/django/core/serializers/base.py index a9c6dbf1dc..4fa95f6f6e 100644 --- a/django/core/serializers/base.py +++ b/django/core/serializers/base.py @@ -146,19 +146,19 @@ class Serializer: """ Called to handle each individual (non-relational) field on an object. """ - raise NotImplementedError('subclasses of Serializer must provide an handle_field() method') + raise NotImplementedError('subclasses of Serializer must provide a handle_field() method') def handle_fk_field(self, obj, field): """ Called to handle a ForeignKey field. """ - raise NotImplementedError('subclasses of Serializer must provide an handle_fk_field() method') + raise NotImplementedError('subclasses of Serializer must provide a handle_fk_field() method') def handle_m2m_field(self, obj, field): """ Called to handle a ManyToManyField. """ - raise NotImplementedError('subclasses of Serializer must provide an handle_m2m_field() method') + raise NotImplementedError('subclasses of Serializer must provide a handle_m2m_field() method') def getvalue(self): """ diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py index 892527873a..b7e35760cb 100644 --- a/django/db/backends/base/operations.py +++ b/django/db/backends/base/operations.py @@ -394,7 +394,7 @@ class BaseDatabaseOperations: to tables with foreign keys pointing the tables being truncated. PostgreSQL requires a cascade even if these tables are empty. """ - raise NotImplementedError('subclasses of BaseDatabaseOperations must provide an sql_flush() method') + raise NotImplementedError('subclasses of BaseDatabaseOperations must provide a sql_flush() method') def execute_sql_flush(self, using, sql_list): """Execute a list of SQL statements to flush the database.""" diff --git a/django/db/migrations/operations/utils.py b/django/db/migrations/operations/utils.py index 34fdaba821..adb2a7febb 100644 --- a/django/db/migrations/operations/utils.py +++ b/django/db/migrations/operations/utils.py @@ -18,7 +18,7 @@ class ModelTuple(namedtuple('ModelTupleBase', ('app_label', 'model_name'))): @classmethod def from_model(cls, model, app_label=None, model_name=None): """ - Take a model class or a 'app_label.ModelName' string and return a + Take a model class or an 'app_label.ModelName' string and return a ModelTuple('app_label', 'modelname'). The optional app_label and model_name arguments are the defaults if "self" or "ModelName" are passed. diff --git a/django/db/models/base.py b/django/db/models/base.py index f2560117d2..0a1120322e 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -727,7 +727,7 @@ class Model(metaclass=ModelBase): % ', '.join(non_model_fields)) # If saving to the same database, and this model is deferred, then - # automatically do a "update_fields" save on the loaded fields. + # automatically do an "update_fields" save on the loaded fields. elif not force_insert and deferred_fields and using == self._state.db: field_names = set() for field in self._meta.concrete_fields: diff --git a/django/forms/forms.py b/django/forms/forms.py index 3898419ab2..0ab25643da 100644 --- a/django/forms/forms.py +++ b/django/forms/forms.py @@ -189,7 +189,7 @@ class BaseForm: return '%s-%s' % (self.prefix, field_name) if self.prefix else field_name def add_initial_prefix(self, field_name): - """Add a 'initial' prefix for checking dynamic initial values.""" + """Add an 'initial' prefix for checking dynamic initial values.""" return 'initial-%s' % self.add_prefix(field_name) def _html_output(self, normal_row, error_row, row_ender, help_text_html, errors_on_separate_row): |
