From ed8e392f771b415fc5b5c95a770d6a3b4f59530a Mon Sep 17 00:00:00 2001 From: Adrian Holovaty Date: Sun, 19 Aug 2007 22:57:08 +0000 Subject: [PATCH] Added extra documentation to BaseDatabaseOperations.datetime_cast_sql() docstring git-svn-id: http://code.djangoproject.com/svn/django/trunk@5954 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/db/backends/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/django/db/backends/__init__.py b/django/db/backends/__init__.py index 2ae652a3e8..41295a15b7 100644 --- a/django/db/backends/__init__.py +++ b/django/db/backends/__init__.py @@ -73,5 +73,8 @@ class BaseDatabaseOperations(object): """ Returns the SQL necessary to cast a datetime value so that it will be retrieved as a Python datetime object instead of a string. + + This SQL should include a '%s' in place of the field's name. This + method should return None if no casting is necessary. """ return None