forked from CGM_Public/pretix_original
Fix non-total ordering of items (fixes flaky test) (#5251)
This commit is contained in:
@@ -793,7 +793,7 @@ class Item(LoggedModel):
|
|||||||
class Meta:
|
class Meta:
|
||||||
verbose_name = _("Product")
|
verbose_name = _("Product")
|
||||||
verbose_name_plural = _("Products")
|
verbose_name_plural = _("Products")
|
||||||
ordering = ("category__position", "category", "position")
|
ordering = ("category__position", "category", "position", "pk")
|
||||||
|
|
||||||
def __str__(self):
|
def __str__(self):
|
||||||
return str(self.internal_name or self.name)
|
return str(self.internal_name or self.name)
|
||||||
|
|||||||
Reference in New Issue
Block a user