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:
parent
c3a1337dfa
commit
45aaf6608d
@ -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):
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user