summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMads Jensen <mje@inducks.org>2017-09-30 15:14:17 +0200
committerTim Graham <timograham@gmail.com>2017-09-30 19:18:51 -0400
commit6d1df84c00d45d382a95347c9d6cf25c40de572e (patch)
tree2fd1e6bac8e51f3f2203bb23912e800ec3ddb2d5
parent25307089bc9968f26a47868d8c105d49501265ed (diff)
Corrected typos in BaseDatabaseOperations exception messages.
-rw-r--r--django/db/backends/base/operations.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/django/db/backends/base/operations.py b/django/db/backends/base/operations.py
index 1ddb1010ec..7bf0210bc6 100644
--- a/django/db/backends/base/operations.py
+++ b/django/db/backends/base/operations.py
@@ -104,13 +104,16 @@ class BaseDatabaseOperations:
truncates the given date field field_name to a date object with only
the given specificity.
"""
- raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetrunc_sql() method')
+ raise NotImplementedError('subclasses of BaseDatabaseOperations may require a date_trunc_sql() method.')
def datetime_cast_date_sql(self, field_name, tzname):
"""
Return the SQL to cast a datetime value to date value.
"""
- raise NotImplementedError('subclasses of BaseDatabaseOperations may require a datetime_cast_date() method')
+ raise NotImplementedError(
+ 'subclasses of BaseDatabaseOperations may require a '
+ 'datetime_cast_date_sql() method.'
+ )
def datetime_cast_time_sql(self, field_name, tzname):
"""