summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorNick Sandford <nick@sandford.id.au>2013-01-11 13:57:54 +0800
committerClaude Paroz <claude@2xlibre.net>2013-01-11 18:10:28 +0100
commiteb6c107624930c97390185fdbf7f887c50665808 (patch)
treed1c7657bcb8c0383393f63934b39f53daef0d7ae /docs
parent2e55cf580e48b02165b7aafb0d9368c714742137 (diff)
Fixed #19360 -- Raised an explicit exception for aggregates on date/time fields in sqlite3
Thanks lsaffre for the report and Chris Medrela for the initial patch.
Diffstat (limited to 'docs')
-rw-r--r--docs/ref/models/querysets.txt8
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ref/models/querysets.txt b/docs/ref/models/querysets.txt
index 2bbd895fd4..71049703c9 100644
--- a/docs/ref/models/querysets.txt
+++ b/docs/ref/models/querysets.txt
@@ -2188,6 +2188,14 @@ Django provides the following aggregation functions in the
aggregate functions, see
:doc:`the topic guide on aggregation </topics/db/aggregation>`.
+.. warning::
+
+ SQLite can't handle aggregation on date/time fields out of the box.
+ This is because there are no native date/time fields in SQLite and Django
+ currently emulates these features using a text field. Attempts to use
+ aggregation on date/time fields in SQLite will raise
+ ``NotImplementedError``.
+
Avg
~~~