Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add special after filter #233

Merged
merged 1 commit into from
Nov 16, 2023
Merged

Add special after filter #233

merged 1 commit into from
Nov 16, 2023

Conversation

daanvdk
Copy link
Collaborator

@daanvdk daanvdk commented Nov 16, 2023

This adds a special filter that allows you to filter for records that come after a record with a certain id in respect to the other filters/ordering. This is very useful for querying extra records when lazy loading.

binder/views.py Outdated
@@ -1510,6 +1522,50 @@ def _apply_q_with_possible_annotations(self, queryset, q, annotations):
return queryset.filter(q)


def _after_expr(self, request, after):
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you add a small description of what this does? From the name alone, it is not very clear what it is supposed to do, and how it should be used

@daanvdk daanvdk merged commit 6ce4002 into master Nov 16, 2023
4 checks passed
@daanvdk daanvdk deleted the after branch November 16, 2023 09:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants