Fix non-total ordering of items (fixes flaky test) (#5251)

This commit is contained in:
Raphael Michel
2025-06-23 10:04:12 +02:00
committed by GitHub
parent 7bb2e4c170
commit 40855e14d9

View File

@@ -793,7 +793,7 @@ class Item(LoggedModel):
class Meta:
verbose_name = _("Product")
verbose_name_plural = _("Products")
ordering = ("category__position", "category", "position")
ordering = ("category__position", "category", "position", "pk")
def __str__(self):
return str(self.internal_name or self.name)