def _single_update(self, obj, dchanges): dchanges = dchanges.copy() if dchanges.get('remote_id'): dchanges['hashcode'] = Event.calc_hashcode(**dchanges) return super(EventDjangoStore, self)._single_update(obj, dchanges)
def _single_create(self, dobj): dobj = dobj.copy() dobj['hashcode'] = Event.calc_hashcode(**dobj) dobj['account'] = self.account return super(EventDjangoStore, self)._single_create(dobj)