Fixed field hash

This commit is contained in:
Syrus Akbary 2015-10-14 21:53:57 -07:00
parent 14298f1c56
commit e693f9b4dc

View File

@ -144,7 +144,7 @@ class Field(object):
return NotImplemented
def __hash__(self):
return hash(self.creation_counter)
return hash((self.creation_counter, self.object_type))
def __copy__(self):
# We need to avoid hitting __reduce__, so define this