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 manager tests #39

Merged
merged 4 commits into from
Sep 28, 2023
Merged

add manager tests #39

merged 4 commits into from
Sep 28, 2023

Conversation

joshuadavidthomas
Copy link
Member

also fix a bug in MessageQuerySet.prioritized

@@ -24,7 +24,7 @@ class Status(models.IntegerChoices):

class MessageQuerySet(models.QuerySet):
def prioritized(self):
return self.order_by("priority", "created_at")
return self.order_by("-priority", "created_at")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is pre-mature optimization, but you might consider indexes down the road on these fields.

Base automatically changed from add-sent-at to main September 28, 2023 20:28
@jefftriplett jefftriplett merged commit d2a2010 into main Sep 28, 2023
24 checks passed
@jefftriplett jefftriplett deleted the add-manager-tests branch September 28, 2023 20:31
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.

None yet

2 participants