Follow up to my earlier question (http://groups.google.com/group/ django-users/browse_thread/thread/8f41540343634178/c05242e6d3b07d62)
As I mentioned there, I'm trying to use a snippet to send a twitter update when a news item is created. The news items have a M2M relationship with sites-- news can go on one site or both. So I need to make sure I'm posting the news item to the correct twitter account. Based on that earlier question, I have: if instance.sites.filter(id=1): do stuff for first site if instance.sites.filter(id=2): do stuff for other site else: return false This is failing to post when the news item is first created. If I re- save the item, THEN it will post. I believe it's because instance.sites is still an empty list at this stage (not yet been created). So what can I do? Is the POST info available to the signal maybe? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---