Skip to content

Commit

Permalink
better model ordering
Browse files Browse the repository at this point in the history
  • Loading branch information
ivancrneto committed May 26, 2024
1 parent b0ca03b commit f56e4be
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions users/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class UserEvent(TimeStampedModel):

class Meta:
unique_together = ("user", "event")
ordering = ("event__match__start_at",)


class UserSubscription(TimeStampedModel):
Expand Down

0 comments on commit f56e4be

Please sign in to comment.