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

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

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):
"""