summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--django/db/backends/base/schema.py4
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()