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

@@ -112,7 +112,7 @@ class WaitingListEntry(LoggedModel):
class Meta:
verbose_name = _("Waiting list entry")
verbose_name_plural = _("Waiting list entries")
ordering = ('-priority', 'created')
ordering = ('-priority', 'created', 'pk')
def __str__(self):
return '%s waits for %s' % (str(self.email), str(self.item))