Thanks Alex that worked great. Vitaly Babiy
On Fri, Nov 7, 2008 at 12:19 PM, Alex Koshelev <[EMAIL PROTECTED]> wrote: > Try to connection handler without `sender` specified. And filter needed > models inside it. > > def my_handler(sender, **kwargs): > if not isinstance(sender, CustomModel): > return > > signals.pre_save.connect(my_handler) > > > On Fri, Nov 7, 2008 at 20:03, Vitaly Babiy <[EMAIL PROTECTED]> wrote: > >> if I define a model called CustomModel and I attach attach a pre_save >> signal to it. Is there any way to have that signal be called any time model >> that extends CustomModel is being saved has that method saved. >> >> I know i could do this by overriding the save method on CustomeModel but I >> was wondering if there is any way to do it with signals. >> >> Thanks, >> Vitaly Babiy >> >> > > > > --~--~---------~--~----~------------~-------~--~----~ 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 [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/django-users?hl=en -~----------~----~----~----~------~----~------~--~---