I'm trying to manually create an object (from a signal). My problem is that the object has a 'sites' M2M field:
class News_item(models.Model): ... sites = models.ManyToManyField(Site) ... but when I try to create the object: news = News_item( ... sites = site, .. ) I'm getting a type error TypeError: 'sites' is an invalid keyword argument for this function What am I doing wrong here? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---