diff options
| author | Tim Graham <timograham@gmail.com> | 2018-11-20 18:01:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-11-20 18:01:18 -0500 |
| commit | acdd18dffc86dca9b3bee780a331ef2354028d42 (patch) | |
| tree | e361a859d09851a393ece230505e45ad216bf89e /django/db | |
| parent | 5d327a63eff4efd9e77c7de2d88727ceb6d34ebd (diff) | |
Changed BaseDatabaseSchemaEditor._effective_default() to staticmethod.
Follow up to 9cac10eee49eae3bbf7bd133ba0ae931b275324c.
Diffstat (limited to 'django/db')
| -rw-r--r-- | django/db/backends/base/schema.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/django/db/backends/base/schema.py b/django/db/backends/base/schema.py index 68250c895e..c5a5ee1d04 100644 --- a/django/db/backends/base/schema.py +++ b/django/db/backends/base/schema.py @@ -199,8 +199,8 @@ class BaseDatabaseSchemaEditor: 'requires_literal_defaults must provide a prepare_default() method' ) - @classmethod - def _effective_default(self, field): + @staticmethod + def _effective_default(field): # This method allows testing its logic without a connection. if field.has_default(): default = field.get_default() |
