diff options
| author | Tom <tom@tomforb.es> | 2017-09-10 15:34:18 +0100 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2018-04-19 10:52:19 -0400 |
| commit | c1c163b42717ed5e051098ebf0e2f5c77810f20e (patch) | |
| tree | b3c42bcf178fe8f33394f41252a92238cb8baff3 /django/db/backends/postgresql/features.py | |
| parent | df90e462d91d3a77aa89b69d791bf17c2bf7ff9b (diff) | |
Fixed #28574 -- Added QuerySet.explain().
Diffstat (limited to 'django/db/backends/postgresql/features.py')
| -rw-r--r-- | django/db/backends/postgresql/features.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/django/db/backends/postgresql/features.py b/django/db/backends/postgresql/features.py index a51383df8f..06b0303bac 100644 --- a/django/db/backends/postgresql/features.py +++ b/django/db/backends/postgresql/features.py @@ -50,6 +50,8 @@ class DatabaseFeatures(BaseDatabaseFeatures): $$ LANGUAGE plpgsql;""" supports_over_clause = True supports_aggregate_filter_clause = True + supported_explain_formats = {'JSON', 'TEXT', 'XML', 'YAML'} + validates_explain_options = False # A query will error on invalid options. @cached_property def is_postgresql_9_5(self): |
