From 694d2ae7bededbb977e11bb7724c8cb81423ac7d Mon Sep 17 00:00:00 2001 From: Gytha Ogg Date: Thu, 12 Dec 2024 13:12:59 +0100 Subject: [PATCH] order instances by name --- apis_ontology/models.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apis_ontology/models.py b/apis_ontology/models.py index 08aace6..0c4953f 100644 --- a/apis_ontology/models.py +++ b/apis_ontology/models.py @@ -331,6 +331,7 @@ class Instance( class Meta: verbose_name = _("instance") verbose_name_plural = _("Instances") + ordering = ["name", "pk"] def __str__(self): return f"{self.name} ({self.pk})"