Re: Implementing an 'extent' query

2007-03-13 Thread Tim Chase
> Instances of Place will be stored in one table, and instances > of Restaurant will be stored in another table. How would I go > about implementing an efficient 'extent' query: a QuerySet > which would give me an instance of Place for each row in > **both** tables? (Or instances of Place or Resta

Re: Implementing an 'extent' query

2007-03-13 Thread James Bennett
On 3/13/07, Laurie Harper <[EMAIL PROTECTED]> wrote: > Is there anything like this already in Django? Django currently does not support model subclassing -- if anything happens to work, it's more accident than anything else, because proper support for model subclassing is still being worked on.

Implementing an 'extent' query

2007-03-13 Thread Laurie Harper
Say I have two model classes, one of which is a sub-class of the other: class Place(models.Model): ... class Restaurant(Place): objects = models.Manager() ... [Note, I'm using model inheritance here, **not** a OneToOneField. The explicit assignment of 'objects' seems to be necessary or Re