diff options
author | Anton Samarchyan <anton.samarchyan@savoirfairelinux.com> | 2017-01-24 18:04:12 -0500 |
---|---|---|
committer | Tim Graham <timograham@gmail.com> | 2017-02-28 09:17:27 -0500 |
commit | 60e52a047e55bc4cd5a93a8bd4d07baed27e9a22 (patch) | |
tree | 010a363968b1ed41adf2e64c98d572d7148a2a5e /django/db/backends/postgresql/base.py | |
parent | d6e26e5b7c8063c2cc5aa045edea6555bf358fc2 (diff) | |
download | django-60e52a047e55bc4cd5a93a8bd4d07baed27e9a22.tar.gz |
Refs #27656 -- Updated django.db docstring verbs according to PEP 257.
Diffstat (limited to 'django/db/backends/postgresql/base.py')
-rw-r--r-- | django/db/backends/postgresql/base.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/postgresql/base.py b/django/db/backends/postgresql/base.py index 7dab1cb364..f8a13eeb5f 100644 --- a/django/db/backends/postgresql/base.py +++ b/django/db/backends/postgresql/base.py @@ -230,8 +230,8 @@ class DatabaseWrapper(BaseDatabaseWrapper): def check_constraints(self, table_names=None): """ - To check constraints, we set constraints to immediate. Then, when, we're done we must ensure they - are returned to deferred. + Check constraints by setting them to immediate. Return them to deferred + afterward. """ self.cursor().execute('SET CONSTRAINTS ALL IMMEDIATE') self.cursor().execute('SET CONSTRAINTS ALL DEFERRED') |