I can see a use case for this, but would this not work?

from django.db.models import get_model

post_save.connect(

    my_signal_handler,

    sender=get_model('my_app', 'MyModel'),
)

As long as the app cache has been initialised before you call get_model,
this should work fine.

- Andy


On 22 August 2012 06:17, Yo-Yo Ma <baxterstock...@gmail.com> wrote:
> Is there anyone else out there who doesn't like having to import models
from app X into app Y just so that app Y can connect post save signals to
them?
>
> --
> You received this message because you are subscribed to the Google Groups
"Django developers" group.
> To view this discussion on the web visit
https://groups.google.com/d/msg/django-developers/-/_vcka4fdtPUJ.
> To post to this group, send email to django-developers@googlegroups.com.
> To unsubscribe from this group, send email to
django-developers+unsubscr...@googlegroups.com.
> For more options, visit this group at
http://groups.google.com/group/django-developers?hl=en.
>

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

Reply via email to