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

[UPDATE] Monthwise Ordering of Events in Timeline api #105

Merged
merged 2 commits into from
Jan 15, 2024

Conversation

Satyam0204
Copy link
Member

No description provided.

main/views.py Outdated
def get_queryset(self):
queryset = super().get_queryset()
# Order by the month of the date_field
return queryset.order_by('event_time')
Copy link
Contributor

@mayankt18 mayankt18 Jan 15, 2024

Choose a reason for hiding this comment

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

order in descending order, earlier it was -event_time @Satyam0204

@mayankt18 mayankt18 merged commit d6dba46 into lugnitdgp:master Jan 15, 2024
3 checks passed
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