Hey, wondering if i'm doing this wrong.  I'm using the new receiver
decorator in the 1.3 svn devel code..

In [2]: django.VERSION
Out[2]: (1, 3, 0, 'rc', 1)

If I leave sender out of the receiver decorator, it works fine, but I
can't get it to work with an abstract base class as the sender.  While
debugging, I noticed that foo would be the sender and I wouldn't ever
see abs (if I remember correctly) as the sender.  Is using an abs
outside of the scope of this decorator or am I going about it wrong?

class abs(models.Model):
    abs_field1 = models.IntegerField()
    abs_field2 = models.CharField(max_length=1)

    class Meta:
        abstract = True


@receiver(pre_save,sender=abs)
def pre_save(sender,instance,using,**kwargs):
    # do stuff useful here
    print sender


class foo(abs):
    display = models.CharField(max_length=1)

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to