Re: Problem creating object

2009-04-21 Thread Daniel Hepper
On Mon, Apr 20, 2009 at 7:48 PM, bax...@gretschpages.com wrote: > > 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

Problem creating object

2009-04-20 Thread bax...@gretschpages.com
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( .