From 18ffdb1772ba60e085cff8fd9a1d4a7b129b4032 Mon Sep 17 00:00:00 2001 From: Tim Graham Date: Mon, 16 Sep 2013 12:52:05 -0400 Subject: Fixed #17627 -- Renamed util.py files to utils.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Thanks PaulM for the suggestion and Luke Granger-Brown and Wiktor KoƂodziej for the initial patch. --- django/db/models/sql/compiler.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'django/db/models/sql') 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) -- cgit v1.3