Hi all, Does Django currently support spanning generic foreign keys with double underscores?
For example, if I have: class Bucket(models.Model): item = generic.GenericForeignKey() .... class Sock(models.Model): attribute1 = ... class Shirt(models.Model): attribute1 = ... Can I do: Bucket.objects.filter(item__attribute1 = blah)? When I try it, it's giving me a field error -- probably because item isn't a real foreign key. Right now, I ended up filtering seperately on Sock and Shirt and then combining the resulting lists. But that's not terribly elegant. Is there a better way to do this? --- David Zhou [EMAIL PROTECTED] --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-users@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---