From 9d93dff33338c90a55f7158fbbe0d82e88e13fa3 Mon Sep 17 00:00:00 2001 From: Simon Charette Date: Fri, 6 Oct 2017 12:47:08 -0400 Subject: Fixed #28665 -- Change some database exceptions to NotImplementedError per PEP 249. --- django/db/backends/sqlite3/operations.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'django/db/backends/sqlite3/operations.py') diff --git a/django/db/backends/sqlite3/operations.py b/django/db/backends/sqlite3/operations.py index 408848c9ad..e90cc052d0 100644 --- a/django/db/backends/sqlite3/operations.py +++ b/django/db/backends/sqlite3/operations.py @@ -43,7 +43,7 @@ class DatabaseOperations(BaseDatabaseOperations): pass else: if isinstance(output_field, bad_fields): - raise NotImplementedError( + raise utils.NotSupportedError( 'You cannot use Sum, Avg, StdDev, and Variance ' 'aggregations on date/time fields in sqlite3 ' 'since date/time is saved as text.' -- cgit v1.3