Ticket #5422: save-send-raw-flag.diff
File save-send-raw-flag.diff, 900 bytes (added by , 17 years ago) |
---|
-
django/db/models/base.py
202 202 _prepare = classmethod(_prepare) 203 203 204 204 def save(self, raw=False): 205 dispatcher.send(signal=signals.pre_save, sender=self.__class__, instance=self )205 dispatcher.send(signal=signals.pre_save, sender=self.__class__, instance=self, raw=raw) 206 206 207 207 non_pks = [f for f in self._meta.fields if not f.primary_key] 208 208 cursor = connection.cursor() … … 259 259 transaction.commit_unless_managed() 260 260 261 261 # Run any post-save hooks. 262 dispatcher.send(signal=signals.post_save, sender=self.__class__, instance=self )262 dispatcher.send(signal=signals.post_save, sender=self.__class__, instance=self, raw=raw) 263 263 264 264 save.alters_data = True 265 265