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/operations.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/operations.py')
-rw-r--r-- | django/db/backends/postgresql/operations.py | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/django/db/backends/postgresql/operations.py b/django/db/backends/postgresql/operations.py index d246638cca..4658eac7c1 100644 --- a/django/db/backends/postgresql/operations.py +++ b/django/db/backends/postgresql/operations.py @@ -202,16 +202,15 @@ class DatabaseOperations(BaseDatabaseOperations): def max_name_length(self): """ - Returns the maximum length of an identifier. + Return the maximum length of an identifier. - Note that the maximum length of an identifier is 63 by default, but can - be changed by recompiling PostgreSQL after editing the NAMEDATALEN - macro in src/include/pg_config_manual.h . + The maximum length of an identifier is 63 by default, but can be + changed by recompiling PostgreSQL after editing the NAMEDATALEN + macro in src/include/pg_config_manual.h. - This implementation simply returns 63, but can easily be overridden by a - custom database backend that inherits most of its behavior from this one. + This implementation returns 63, but can be overridden by a custom + database backend that inherits most of its behavior from this one. """ - return 63 def distinct_sql(self, fields): |