I have a need to select base classes that does not have derived class defined using the ORM. Using the Place/Restaurant example in the Django doc, I find that:
1) Place.objects.filter(restaurant__isnull=True) returns all places. and 2) Place.objects.filter(restaurant__serves_hotdog__isnull=True) works, returning all Places that is not a restaurant. I wonder though, is this the *correct* way to do the query? P.K. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

