1
0
mirror of https://github.com/django/django.git synced 2024-12-23 01:25:58 +00:00

Changed BaseDatabaseSchemaEditor._effective_default() to staticmethod.

Follow up to 9cac10eee4.
This commit is contained in:
Tim Graham 2018-11-20 18:01:18 -05:00 committed by GitHub
parent 5d327a63ef
commit acdd18dffc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()