diff options
| author | Tim Graham <timograham@gmail.com> | 2013-09-16 12:52:05 -0400 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2013-09-16 12:52:05 -0400 |
| commit | 18ffdb1772ba60e085cff8fd9a1d4a7b129b4032 (patch) | |
| tree | 69ea529302e5c498e6b020b03c30e2ccf4a21936 /django/db/models/sql | |
| parent | 8d29005524b141da8ff4d9b9bc4d858d43bb7154 (diff) | |
Fixed #17627 -- Renamed util.py files to utils.py
Thanks PaulM for the suggestion and Luke Granger-Brown and
Wiktor KoĆodziej for the initial patch.
Diffstat (limited to 'django/db/models/sql')
| -rw-r--r-- | django/db/models/sql/compiler.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/django/db/models/sql/compiler.py b/django/db/models/sql/compiler.py index c42149e45a..ba2c6c91b3 100644 --- a/django/db/models/sql/compiler.py +++ b/django/db/models/sql/compiler.py @@ -2,7 +2,7 @@ import datetime from django.conf import settings from django.core.exceptions import FieldError -from django.db.backends.util import truncate_name +from django.db.backends.utils import truncate_name from django.db.models.constants import LOOKUP_SEP from django.db.models.query_utils import select_related_descend, QueryWrapper from django.db.models.sql.constants import (SINGLE, MULTI, ORDER_DIR, @@ -1049,7 +1049,7 @@ class SQLDateCompiler(SQLCompiler): from django.db.models.fields import DateField fields = [DateField()] else: - from django.db.backends.util import typecast_date + from django.db.backends.utils import typecast_date needs_string_cast = self.connection.features.needs_datetime_string_cast offset = len(self.query.extra_select) @@ -1075,7 +1075,7 @@ class SQLDateTimeCompiler(SQLCompiler): from django.db.models.fields import DateTimeField fields = [DateTimeField()] else: - from django.db.backends.util import typecast_timestamp + from django.db.backends.utils import typecast_timestamp needs_string_cast = self.connection.features.needs_datetime_string_cast offset = len(self.query.extra_select) |
