Hello, I've just put a very rough prototype of a db.models.Manager that allows queries to be specified with lambdas:
Choice.objects.where(lambda c: c.votes >= 1) Choice.objects.where(lambda c: c.votes != 1) Choice.objects.where(lambda c: c.poll.question.exact('aaa')) Choice.objects.where(lambda c: c.poll.question.contains('aa')) Choice.objects.where(lambda c: c.votes == c.anumber) Choice.objects.where(lambda c: c.votes > c.anumber) https://github.com/jpablo/django-orm-lambdas Regards, Juan Pablo -- 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 django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.