agateblue / lifter

A generic query engine, inspired by Django ORM
ISC License
449 stars 16 forks source link

Add a simple django contrib app to allow locally filtering querysets #40

Closed agateblue closed 8 years ago

agateblue commented 8 years ago

Assuming the app is configured correctly:

INSTALLED_APPS ) = [
    'lifter.contrib.django',
]

One should be able to use lifter's python backend to manipulate queryset locally, without calling the database:

# django qs
qs = User.objects.filter(date_joined__year=2016)

# local sorting using lifter
qs.locally().order_by('-date_joined')