Ensure total ordering of paginated lists (#3061)

This commit is contained in:
Raphael Michel
2023-02-24 10:51:51 +01:00
committed by GitHub
parent c2d720b3b9
commit 7d4b575150
26 changed files with 232 additions and 77 deletions

View File

@@ -612,7 +612,7 @@ class Event(EventMixin, LoggedModel):
class Meta:
verbose_name = _("Event")
verbose_name_plural = _("Events")
ordering = ("date_from", "name")
ordering = ("date_from", "name", "slug")
unique_together = (('organizer', 'slug'),)
def __str__(self):