Here's my proposal for the composite keys (which act much like generic keys except more useful):
class MyModel2: pass class MyModel3: pk_part1 = models.AutoField() pk_part2 = models.ForeignKey(MyModel2) name = models.TextField() class MyModel: pk_part1 = models.IntegerField() pk_part2 = models.ForeignKey(MyModel2) mymodel3 = models.CompositeForeignKey(MyModel3, pk_part1=pk_part1, pk_part2=pk_part2) MyModel.objects.filter(mymodel3__name="Hi") Anyways, I think you get the gist. I think this would cover all use cases, and is a very simple, similar, and clean API. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@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-developers?hl=en -~----------~----~----~----~------~----~------~--~---