diff options
| author | Tim Graham <timograham@gmail.com> | 2017-02-02 20:43:21 -0500 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2017-02-03 08:01:45 -0500 |
| commit | 29f607927fe82e2c8baab171dfa8baf710cd9b83 (patch) | |
| tree | f525c6c4784ccafe77e01f706093fa6f4a5c9481 /django/db | |
| parent | a21ec12409a5b72d602cd03ee925b6ceb1cd5492 (diff) | |
Fixed spelling of "nonexistent".
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/models/base.py | 6 | ||||
| -rw-r--r-- | django/db/models/query.py | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/django/db/models/base.py b/django/db/models/base.py index 497a18f51a..2914ba2a6f 100644 --- a/django/db/models/base.py +++ b/django/db/models/base.py @@ -1497,7 +1497,7 @@ class Model(metaclass=ModelBase): except KeyError: errors.append( checks.Error( - "'%s' refers to the non-existent field '%s'." % ( + "'%s' refers to the nonexistent field '%s'." % ( option, field_name, ), obj=cls, @@ -1570,7 +1570,7 @@ class Model(metaclass=ModelBase): # but is an alias and therefore won't be found by opts.get_field. fields = {f for f in fields if f != 'pk'} - # Check for invalid or non-existent fields in ordering. + # Check for invalid or nonexistent fields in ordering. invalid_fields = [] # Any field name that is not present in field_names does not exist. @@ -1586,7 +1586,7 @@ class Model(metaclass=ModelBase): for invalid_field in invalid_fields: errors.append( checks.Error( - "'ordering' refers to the non-existent field '%s'." % invalid_field, + "'ordering' refers to the nonexistent field '%s'." % invalid_field, obj=cls, id='models.E015', ) diff --git a/django/db/models/query.py b/django/db/models/query.py index 244cfaf164..290be2e779 100644 --- a/django/db/models/query.py +++ b/django/db/models/query.py @@ -1267,7 +1267,7 @@ class RawQuerySet: index = columns.index(query_name) columns[index] = model_name except ValueError: - # Ignore translations for non-existent column names + # Ignore translations for nonexistent column names pass return columns |
