the models are:
class Word(models.Model):
... some stuff...
class Meta:
abstract=True
class Noun(Word):
.. some stuff ..
class Verb(Word):
... some stuff ...
code:
nouns= Noun.objects.all()
verbs=Verb.objects.all()
words = verbs | nouns
I get an error saying: "Cannot combine queries on two different base
models."
is there anyway to accomplish this, the reason I don't want to do:
nouns= list(Noun.objects.all())
verbs=list(Verb.objects.all())
words = verbs + nouns
is I want to be able to run an order_by on the resulting list or
queryset
thanks,
Luke
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---