utr...@bcc190cf-cafb-0310-a4f2-bffc1f526a37  committed b1a533a

* Fixed 'signal_name' error
# Somehow this modification got run over by trunk merge.
# I'm trying to find a better solution, but for now this will do.
# Thanks to David Cramer for error report.

  • Participants
  • Parent commits 749337e
  • Branches full-history

Comments (0)

Files changed (2)

File django/db/models/

     _prepare = classmethod(_prepare)
     def save(self):
-        dispatcher.send(signal=signals.pre_save, sender=self.__class__, instance=self)
+        dispatcher.send(signal=signals.pre_save, sender=self.__class__, instance=self, signal_name="pre_save")
         non_pks = [f for f in self._meta.fields if not f.primary_key]
         cursor = connection.cursor()

File django/db/models/

         # Pre notify all instances to be deleted
         for pk_val, instance in seen_objs[cls]:
-            dispatcher.send(signal=signals.pre_delete, sender=cls, instance=instance)
+            dispatcher.send(signal=signals.pre_delete, sender=cls, instance=instance, signal_name="pre_delete")
         pk_list = [pk for pk,instance in seen_objs[cls]]
         for related in cls._meta.get_all_related_many_to_many_objects():