mirror of
https://github.com/django/django.git
synced 2025-05-06 23:16:29 +00:00
Changed BaseDatabaseSchemaEditor._effective_default() to staticmethod.
Follow up to 9cac10eee49eae3bbf7bd133ba0ae931b275324c.
This commit is contained in:
parent
5d327a63ef
commit
acdd18dffc
@ -199,8 +199,8 @@ class BaseDatabaseSchemaEditor:
|
|||||||
'requires_literal_defaults must provide a prepare_default() method'
|
'requires_literal_defaults must provide a prepare_default() method'
|
||||||
)
|
)
|
||||||
|
|
||||||
@classmethod
|
@staticmethod
|
||||||
def _effective_default(self, field):
|
def _effective_default(field):
|
||||||
# This method allows testing its logic without a connection.
|
# This method allows testing its logic without a connection.
|
||||||
if field.has_default():
|
if field.has_default():
|
||||||
default = field.get_default()
|
default = field.get_default()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user