Hello, I need help making a query with django with I'm not sure it's possible.
I have model: class User_Friend(models.Model): from_user = models.ForeignKey(User, related_name='from_user') to_user = models.ForeignKey(User, null=True, related_name='to_user') active = models.BooleanField(default=False) view: I would like to do User_Friend.objects.filter( from_user=user, active=True, to_user.name__startswith=q ) since this is not possible is there any alternative? Best regards, Luis --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---