On Mar 19, 11:28 am, Andy Mckay <a...@clearwind.ca> wrote: > Well I would have lots of questions there, some real code might help, > not sure we have enough info. But lets start with what signal are you > trying to catch (theres a few different ones)?
Thanks Andy. In the model I've got: class News_item(models.Model): ... sites = models.ManyToManyField(Site) ... models.signals.post_save.connect(post_to_twitter, sender=News_item) In the signal, this is where I'm pretty sure I'm failing: if instance.sites.filter(id=1): do stuff for site 1 If I grab instance.sites, it appears to be an empty list. It looks like it hasn't been created yet in this stage of the process? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---