Re: Behaviour of related objects

2009-10-26 Thread Bojan Mihelac
On Oct 26, 5:22 am, Preston Holmes wrote: > On Oct 25, 2:55 pm, Bojan Mihelac wrote: > > > Hi all, > > > given an many_to_one doctests with Reporter/Article models, the > > following example would fail with "IntegrityError: > > many_to_one_article.reporter_id may not be NULL": > > > >>> r = Re

Re: Behaviour of related objects

2009-10-25 Thread Preston Holmes
On Oct 25, 2:55 pm, Bojan Mihelac wrote: > Hi all, > > given an many_to_one doctests with Reporter/Article models, the > following example would fail with "IntegrityError: > many_to_one_article.reporter_id may not be NULL": > > >>> r = Reporter(first_name='John', last_name='Smith', > >>> email

Behaviour of related objects

2009-10-25 Thread Bojan Mihelac
Hi all, given an many_to_one doctests with Reporter/Article models, the following example would fail with "IntegrityError: many_to_one_article.reporter_id may not be NULL": >>> r = Reporter(first_name='John', last_name='Smith', email='j...@example.com') >>> a = Article(headline="This is a test",