Ticket #2936: add_hash_to_model.diff
| File add_hash_to_model.diff, 0.5 kB (added by favo@exoweb.net, 2 years ago) |
|---|
-
django/db/models/base.py
old new 88 88 def __ne__(self, other): 89 89 return not self.__eq__(other) 90 90 91 def __hash__(self): 92 return hash(str(self._get_pk_val())) 93 91 94 def __init__(self, *args, **kwargs): 92 95 dispatcher.send(signal=signals.pre_init, sender=self.__class__, args=args, kwargs=kwargs) 93 96 for f in self._meta.fields:
