Removed unused variable in BaseDatabaseSchemaEditor.effective_default().
This commit is contained in:
parent
c3a1337dfa
commit
45aaf6608d
|
@ -219,10 +219,8 @@ class BaseDatabaseSchemaEditor:
|
||||||
# If it's a callable, call it
|
# If it's a callable, call it
|
||||||
if callable(default):
|
if callable(default):
|
||||||
default = default()
|
default = default()
|
||||||
# Run it through the field's get_db_prep_save method so we can send it
|
# Convert the value so it can be sent to the database.
|
||||||
# to the database.
|
return field.get_db_prep_save(default, self.connection)
|
||||||
default = field.get_db_prep_save(default, self.connection)
|
|
||||||
return default
|
|
||||||
|
|
||||||
def quote_value(self, value):
|
def quote_value(self, value):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue