Add a simple django contrib app to allow locally filtering querysets
Closed this issue · 0 comments
agateblue commented
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')