thanks. I've read almost all the documentation at least three or for times (or more) and I go back to it constantly. Plus I have a couple of books that I read all the time (I esp. like the book by Forcier, Bissex, and Chun). Neither the documentation nor this book gives, far as I can tell, an example of how to get a query set that shows all records with no parent.
The pointer you gave, thanks very much, explains how to set the data model to allow nulls, which I've done already. Further, as I originally mentioned, I'm not using Django to control data entry, so the None=True in the data model doesn't really have any impact, I think. Perhaps i'm wrong on that; but no matter because the data with null parent fields are indeed in the database. My problem, perhaps badly explained, was to extract with Django queryset all those records in the without parents. That's what's vexing me. I've done it now with a SQL query to return a Python list. Not as elegant, but appears to work . Thanks. On Jul 18, 9:05 pm, Ramiro Morales <[email protected]> wrote: > On Sun, Jul 18, 2010 at 4:33 PM,rmschne<[email protected]> wrote: > > Thanks ... but where does "None=True" go? > > That should be null=True winn defining the ForeignKey field. > > See > > http://docs.djangoproject.com/en/1.2/topics/db/models/#field-options > > Please accept this humble suggestion: > > Reading the documentation from beginning to end once > will help you a lot when beginning. It would be unfortunate > to not take advantage of such a great body of documents. > There are other projects where this is not possible > because the docs are very basic. But this isn´t the > case with Django. > > Regards, > > -- > Ramiro Morales | http://rmorales.net -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.

