diff options
Diffstat (limited to 'lib/sqlalchemy/orm/attributes.py')
-rw-r--r-- | lib/sqlalchemy/orm/attributes.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/sqlalchemy/orm/attributes.py b/lib/sqlalchemy/orm/attributes.py index df1f328b7..fecd74f30 100644 --- a/lib/sqlalchemy/orm/attributes.py +++ b/lib/sqlalchemy/orm/attributes.py @@ -556,15 +556,7 @@ class AttributeImpl(object): def initialize(self, state, dict_): """Initialize the given state's attribute with an empty value.""" - old = NEVER_SET - value = None - if self.dispatch.set: - value = self.fire_replace_event(state, dict_, - None, old, None) - state._modified_event(dict_, self, old) - - dict_[self.key] = value - return value + return None def get(self, state, dict_, passive=PASSIVE_OFF): """Retrieve a value from the given object. |