Permalink
Browse files

[full-history]

* 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.



git-svn-id: http://code.djangoproject.com/svn/django/branches/full-history@3766 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information...
1 parent dbdbf17 commit a2ea7775a3d2e42f07f26e1a0b533e3d53cb4115 Uroš Trebec committed Sep 17, 2006
Showing with 2 additions and 2 deletions.
  1. +1 −1 django/db/models/base.py
  2. +1 −1 django/db/models/query.py
View
2 django/db/models/base.py
@@ -160,7 +160,7 @@ def _prepare(cls):
_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()
View
2 django/db/models/query.py
@@ -921,7 +921,7 @@ def delete_objects(seen_objs):
# 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():

0 comments on commit a2ea777

Please sign in to comment.