We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
ordering
The current state is
def paginate_queryset(self, queryset, request, view=None): ..... order_attr = order.lstrip('-') # Test for: (cursor reversed) XOR (queryset reversed) if self.cursor.reverse != is_reversed: kwargs = {order_attr + '__lt': current_position} else: kwargs = {order_attr + '__gt': current_position}
And I have backup_date and created_at, I want the cursor to act on backup_date, but filter with created_at
backup_date
created_at
Am I doing it wrong?
The text was updated successfully, but these errors were encountered:
confirmed
Sorry, something went wrong.
No branches or pull requests
The current state is
And I have
backup_date
andcreated_at
, I want the cursor to act onbackup_date
, but filter withcreated_at
Am I doing it wrong?
The text was updated successfully, but these errors were encountered: