Removed unused variable in BaseDatabaseSchemaEditor.effective_default().

This commit is contained in:
Дилян Палаузов 2018-03-12 11:37:20 -04:00 committed by Tim Graham
parent c3a1337dfa
commit 45aaf6608d
1 changed files with 2 additions and 4 deletions

View File

@ -219,10 +219,8 @@ class BaseDatabaseSchemaEditor:
# If it's a callable, call it
if callable(default):
default = default()
# Run it through the field's get_db_prep_save method so we can send it
# to the database.
default = field.get_db_prep_save(default, self.connection)
return default
# Convert the value so it can be sent to the database.
return field.get_db_prep_save(default, self.connection)
def quote_value(self, value):
"""