diff options
author | Tom <tom@tomforb.es> | 2017-04-22 16:44:51 +0100 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-08-12 17:58:28 -0400 |
commit | b78d100fa62cd4fbbc70f2bae77c192cb36c1ccd (patch) | |
tree | be1f272298c15c6a261e33dff7486b0c3727b407 /django/db/backends/postgresql/features.py | |
parent | 489421b01562494ab506de5d30ea97d7b6b5df30 (diff) | |
download | django-b78d100fa62cd4fbbc70f2bae77c192cb36c1ccd.tar.gz |
Fixed #27849 -- Added filtering support to aggregates.
Diffstat (limited to 'django/db/backends/postgresql/features.py')
-rw-r--r-- | django/db/backends/postgresql/features.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py index 647fb9dc7f..3c7a7af80f 100644 --- a/django/db/backends/postgresql/features.py +++ b/django/db/backends/postgresql/features.py @@ -51,6 +51,10 @@ class DatabaseFeatures(BaseDatabaseFeatures): $$ LANGUAGE plpgsql;""" @cached_property + def supports_aggregate_filter_clause(self): + return self.connection.pg_version >= 90400 + + @cached_property def has_select_for_update_skip_locked(self): return self.connection.pg_version >= 90500 |