models: Remove __dict__.copy() that did not do anything

This commit is contained in:
Thomas Adamcik 2015-04-04 16:55:15 +02:00
parent f131ba4879
commit 8604213276

View File

@ -198,7 +198,7 @@ class ImmutableObject(object):
:rtype: new instance of the model being copied
"""
other = self.__class__()
other.__dict__.update(self.__dict__.copy())
other.__dict__.update(self.__dict__)
for key, value in values.items():
if key not in self._fields:
raise TypeError(